Move the tests from .html to .sky

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/685623002
This commit is contained in:
Hixie 2014-10-27 17:35:15 -07:00
parent 065437b16c
commit 5dd15fe8d3
79 changed files with 134 additions and 132 deletions

View File

@ -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 ]

View File

@ -1,6 +1,6 @@
<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>

View File

@ -1,6 +1,6 @@
<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>

View File

@ -1,6 +1,6 @@
<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.

View File

@ -1,6 +1,6 @@
<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.

View File

@ -1,6 +1,6 @@
<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.

View File

@ -1,5 +1,5 @@
<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>

View File

@ -1,5 +1,5 @@
<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

View File

@ -1,5 +1,5 @@
<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>"; } } }) });

View File

@ -1,6 +1,6 @@
<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>

View File

@ -1,6 +1,6 @@
<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>

View File

@ -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

View File

@ -1,5 +1,5 @@
<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

View File

@ -1,6 +1,6 @@
<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

View File

@ -1,7 +1,7 @@
<!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 {

View File

@ -1,6 +1,6 @@
<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;

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,4 +0,0 @@
<foo>
<link rel="import" href="../resources/dump-as-render-tree.html" />
Hello World!
</foo>

View File

@ -0,0 +1,4 @@
<foo>
<link rel="import" href="../resources/dump-as-render-tree.sky" />
Hello World!
</foo>

View File

@ -1,6 +1,6 @@
<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>

View File

@ -1,6 +1,6 @@
<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>

View File

@ -1,6 +1,6 @@
<!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; }

View File

@ -1,6 +1,6 @@
<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; }

View File

@ -1,6 +0,0 @@
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<body>
This is a dump-as-text test.
</body>
</html>

View File

@ -0,0 +1,6 @@
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<body>
This is a dump-as-text test.
</body>
</html>

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1 +1 @@
PASS: pass.html succesfully exported this string.
PASS: pass.sky succesfully exported this string.

View File

@ -1,8 +0,0 @@
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="resources/pass.html" as="hello" />
<div id="result">FAIL</div>
<script>
document.getElementById("result").textContent = hello;
</script>
</html>

View File

@ -0,0 +1,8 @@
<html>
<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;
</script>
</html>

View File

@ -1 +1 @@
{"message":"PASS: pass.html succesfully exported this string."}
{"message":"PASS: pass.sky succesfully exported this string."}

View File

@ -1,5 +1,5 @@
<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);

View File

@ -1,7 +0,0 @@
<link rel="import" href="../../resources/dump-as-text.html" />
<link rel="import" href="pass.html" as="banana" />
<script>
this.exports = {
message: banana,
};
</script>

View File

@ -0,0 +1,7 @@
<link rel="import" href="../../resources/dump-as-text.sky" />
<link rel="import" href="pass.sky" as="banana" />
<script>
this.exports = {
message: banana,
};
</script>

View File

@ -1,3 +0,0 @@
<script>
this.exports = "PASS: pass.html succesfully exported this string."
</script>

View File

@ -0,0 +1,3 @@
<script>
this.exports = "PASS: pass.sky succesfully exported this string."
</script>

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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;

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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;

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,5 +1,5 @@
<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) {

View File

@ -1,6 +1,6 @@
<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) { });

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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");

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,7 +1,7 @@
<!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) {

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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) {

View File

@ -1,5 +1,5 @@
<html>
<link rel="import" href="../resources/dump-as-text.html" />
<link rel="import" href="../resources/dump-as-text.sky" />
<body>
<
<!

View File

@ -1,5 +1,5 @@
<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>

View File

@ -1,5 +1,5 @@
<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>

View File

@ -1,5 +1,5 @@
<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>

View File

@ -1,5 +1,5 @@
<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>

View File

@ -1,5 +1,5 @@
<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>

View File

@ -1,6 +1,6 @@
<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" />

View File

@ -1,6 +1,6 @@
<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() {

View File

@ -1,6 +1,6 @@
<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>

View File

@ -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',
]