提交 de0ba17e 编写于 作者: H Hixie

Move the tests from .html to .sky

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/685623002
上级 c198c321
......@@ -3,12 +3,12 @@
crbug.com/1 editing/ [ Skip ]
# These tests require gc() to be exposed.
crbug.com/1 mutation-observer/observer-wrapper-dropoff-transient.html [ Skip ]
crbug.com/1 mutation-observer/observer-wrapper-dropoff.html [ Skip ]
crbug.com/1 mutation-observer/transient-gc-crash.html [ Skip ]
crbug.com/1 mutation-observer/weak-callback-gc-crash.html [ Skip ]
crbug.com/1 mutation-observer/observer-wrapper-dropoff-transient.sky [ Skip ]
crbug.com/1 mutation-observer/observer-wrapper-dropoff.sky [ Skip ]
crbug.com/1 mutation-observer/transient-gc-crash.sky [ Skip ]
crbug.com/1 mutation-observer/weak-callback-gc-crash.sky [ Skip ]
# We need to land the new inspector backend
Bug(abarth) inspector [ Skip ]
Bug(abarth) services/network.html [ Crash ]
Bug(abarth) services/network.sky [ Crash ]
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<body>
<div id="container"></div>
<script>
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<body>
<div id="container"></div>
<script>
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="resources/document-register-fuzz.html" as="fuzzer" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="resources/document-register-fuzz.sky" as="fuzzer" />
<body>
<div id="container"></div>
Fuzzing document.registerElement() through getters. PASS unless crash.
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="resources/document-register-fuzz.html" as="fuzzer" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="resources/document-register-fuzz.sky" as="fuzzer" />
<body>
<div id="container"></div>
Fuzzing document.registerElement() through getters. PASS uless crash.
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="resources/document-register-fuzz.html" as="fuzzer" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="resources/document-register-fuzz.sky" as="fuzzer" />
<body>
<div id="container"></div>
Fuzzing document.registerElement() through getters. PASS unless crash.
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<body>
Tests unresolved element not leaking if never resolved.
<div id="container"></div>
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<body>
<section id="a" is="x-a"></section>
Tests that type extension of a element whose DOM interface is HTMLElement does not assert
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<body>
<script>
document.registerElement("x-foo", { prototype: Object.create(HTMLElement.prototype, { createdCallback: { value: function () { this.innerHTML = "<x-foo>Hello</x-foo>"; } } }) });
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="../resources/chai.sky" />
<body>
This test ensures that is visible in following script block.
<script>
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="../resources/chai.sky" />
<body>
This test ensures that the lifecycle callback of a parser-made element is visible in following script block.
<script>
......
......@@ -543,6 +543,7 @@ text/rfc822-headers
text/richtext rtx
text/rtf rtf
text/sgml sgml sgm
text/sky sky
text/t140
text/tab-separated-values tsv
text/uri-list
......
<html>
<link rel="import" href="inspector/backend/dom-agent.html" as="DOMAgent" />
<link rel="import" href="inspector/backend/dom-agent.sky" as="DOMAgent" />
<div></div>
<script>
// FIXME: This shows a bug in our DOM mutation handling, we should
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="inspector/backend/dom-agent.html" as="DOMAgent" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="inspector/backend/dom-agent.sky" as="DOMAgent" />
<div><div></div></div>
<script>
// setTimeout to flush pending DOM modifications and measure
......
<!DOCTYPE html>
<html>
<head>
<link rel="import" href="../resources/dump-as-render-tree.html" />
<link rel="import" href="../resources/dump-as-render-tree.sky" />
<title>Adam Barth</title>
<style>
html {
......
<html>
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<script>
describe("Attribute collection", function() {
var div;
......
<CamelCase>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('Element tag names', function() {
it('should have various casing', function() {
......
<test>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('createElementNS tests from mozilla, attached to webkit bug 16833', function() {
it('should behave like mozilla', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('DOMImplementation', function() {
it('should let you create a document', function() {
......
<foo>
<link rel="import" href="../resources/dump-as-render-tree.html" />
Hello World!
</foo>
<foo>
<link rel="import" href="../resources/dump-as-render-tree.sky" />
Hello World!
</foo>
<html>
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<div id="tests">
<div id="id1">
<div class="class2"></div>
......
<sky>
<scroller style="overflow: scroll; height: 400px;">
<link rel="import" href="../resources/dump-as-render-tree.html" />
<link rel="import" href="../resources/dump-as-render-tree.sky" />
<style>
div { height: 100px; }
</style>
......
<!DOCTYPE html>
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<style>
#id1 { order: 1; }
.class2 { order: 2; }
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<style>
#sandbox { color: red; }
.blue { color: blue; }
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<body>
This is a dump-as-text test.
</body>
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe.only('This suite', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('This suite', function() {
......
PASS: pass.html succesfully exported this string.
PASS: pass.sky succesfully exported this string.
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="resources/pass.html" as="hello" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="resources/pass.sky" as="hello" />
<div id="result">FAIL</div>
<script>
document.getElementById("result").textContent = hello;
......
{"message":"PASS: pass.html succesfully exported this string."}
{"message":"PASS: pass.sky succesfully exported this string."}
<html>
<link rel="import" href="resources/intermediate.html" as="chocolate" />
<link rel="import" href="resources/intermediate.sky" as="chocolate" />
<div id="result">FAIL</div>
<script>
document.getElementById("result").textContent = JSON.stringify(chocolate);
......
<link rel="import" href="../../resources/dump-as-text.html" />
<link rel="import" href="pass.html" as="banana" />
<link rel="import" href="../../resources/dump-as-text.sky" />
<link rel="import" href="pass.sky" as="banana" />
<script>
this.exports = {
message: banana,
......
<script>
this.exports = "PASS: pass.html succesfully exported this string."
</script>
<script>
this.exports = "PASS: pass.sky succesfully exported this string."
</script>
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should pass the callback and observer arguments', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('Transient registrations', function() {
it('should be cleared even without delivery', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
window.jsTestIsAsync = true;
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver cross document moves', function() {
it('should handle basic observation', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should deliver in order of creation', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver.disconnect', function() {
it('should cancel pending delivery', function(done) {
......
<html>
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<script>
describe('DocumentFragments should remove all children of the fragment before moving children, ', function() {
var mutations;
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should not interrupt delivery order on getting mutations during delivery', function(done) {
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<body id="body">
<script>
function mutationCallback(mutations, observer) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
var observer = new MutationObserver(function(mutations) { });
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationRecord', function() {
it('should be exposed on window but not constructable', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('Non-relevant properties on mutation records should be null, except for NodeLists, which should be empty', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe on attributes', function() {
it('should handle basic aspects of attribute observation', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<body id="body">
<script>
document.body = document.getElementById("body");
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe on childList', function() {
it('should handle basic observation', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver observe', function() {
it('should throw on invalid input', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe', function() {
it('should observe attributes', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('Test MutationObserver.observe', function() {
it('should respect character data options', function() {
......
<!DOCTYPE html>
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver.observe on a subtree', function() {
it('should handle basic aspects of subtree observation', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver wrappers', function() {
it('should survive GC for passing into the callback even if JS has lost references and the only remaining observations are transient.', function(done) {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver', function() {
it('should not invoke callbacks when appending a script', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<div id="range"></div>
<script>
describe('MutationObservers', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<script>
describe('MutationObserver.takeRecords', function() {
it('should allow taking records synchronously or getting a notification', function(done) {
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<body>
<
<!
......
<html>
<link rel="import" href="../resources/dump-as-markup.html"></link>
<link rel="import" href="../resources/dump-as-markup.sky"></link>
<body>
<div>aaa'bbb</div>
<div>&lt;</div>
......
<html>
<link rel="import" href="../resources/dump-as-markup.html" />
<link rel="import" href="../resources/dump-as-markup.sky" />
<body>
<div>aaa&apos;bbb</div>
<div>&lt;</div>
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="/mojo/public/html/buffer.html" as="buffer" />
<div id="result">FAIL</div>
<script>
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="/mojo/public/html/codec.html" as="codec" />
<div id="result">FAIL</div>
<script>
......
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="/mojo/public/html/core.html" as="core" />
<div id="result">FAIL</div>
<script>
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="/mojo/public/html/core.html" as="core" />
<link rel="import" href="/mojo/public/html/connection.html" as="connection" />
<link rel="import" href="/mojo/services/public/interfaces/network/network_service.mojom.html" as="net" />
......
<html>
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.sky" />
<link rel="import" href="../resources/chai.sky" />
<foo />
<script>
describe('Border', function() {
......
<html>
<link rel="import" href="../resources/chai.html" />
<link rel="import" href="../resources/mocha.html" />
<link rel="import" href="../resources/chai.sky" />
<link rel="import" href="../resources/mocha.sky" />
<foo />
<script>
......
......@@ -17,6 +17,7 @@ MOJO_SHELL_PATH = os.path.abspath(os.path.join(__file__, os.pardir, os.pardir,
SUPPORTED_MIME_TYPES = [
'text/html',
'text/sky',
'text/plain',
]
......
......@@ -228,7 +228,7 @@ class Port(object):
if driver_name == self.MOJO_SHELL_NAME:
return [
'--args-for=mojo://native_viewport_service/ --use-headless-config',
'--content-handlers=text/html,mojo://sky_viewer/',
'--content-handlers=text/sky,mojo://sky_viewer/',
'--url-mappings=mojo:window_manager=mojo:sky_tester',
'mojo:window_manager',
]
......@@ -725,7 +725,7 @@ class Port(object):
return [self.relative_test_filename(f) for f in files]
# When collecting test cases, we include any file with these extensions.
_supported_file_extensions = set(['.html'])
_supported_file_extensions = set(['.sky'])
@staticmethod
# If any changes are made here be sure to update the isUsedInReftest method in old-run-webkit-tests as well.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册