aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorddh <dianehosfelt@gmail.com>2017-11-20 23:07:10 +0000
committerddh <dianehosfelt@gmail.com>2017-11-30 16:18:57 +0000
commit79d896d4744c347236fbf6916e3a71ddaa670ccb (patch)
treef8c4ca3255ce386ee12ba23662c3af6a487773d6 /tests
parent462409ada54b002689d01c7c7243f0d9fe90df26 (diff)
downloadservo-79d896d4744c347236fbf6916e3a71ddaa670ccb.tar.gz
servo-79d896d4744c347236fbf6916e3a71ddaa670ccb.zip
queue event instead of immediately fire
created checks to see if parser is in use before event dispatch changed tests to expect crash and added async style test
Diffstat (limited to 'tests')
-rw-r--r--tests/wpt/metadata/MANIFEST.json10
-rw-r--r--tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini4
-rw-r--r--tests/wpt/metadata/custom-elements/parser/parser-fallsback-to-unknown-element.html.ini4
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/document-metadata/the-style-element/style_load_async.html25
4 files changed, 43 insertions, 0 deletions
diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json
index 89e0a1b5f3a..f4a05c5a446 100644
--- a/tests/wpt/metadata/MANIFEST.json
+++ b/tests/wpt/metadata/MANIFEST.json
@@ -314573,6 +314573,12 @@
{}
]
],
+ "html/semantics/document-metadata/the-style-element/style_load_async.html": [
+ [
+ "/html/semantics/document-metadata/the-style-element/style_load_async.html",
+ {}
+ ]
+ ],
"html/semantics/document-metadata/the-style-element/style_media.html": [
[
"/html/semantics/document-metadata/the-style-element/style_media.html",
@@ -539856,6 +539862,10 @@
"77a9ee6e0d58d2aa905423f3b6f9d55492ed8eb9",
"testharness"
],
+ "html/semantics/document-metadata/the-style-element/style_load_async.html": [
+ "09e5519ec1a2d1f8b044f9d1309cf36695d4631d",
+ "testharness"
+ ],
"html/semantics/document-metadata/the-style-element/style_media.html": [
"3d608438361d8bec5726feb468a3c2fbd5b7cb7d",
"testharness"
diff --git a/tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini b/tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini
new file mode 100644
index 00000000000..00638b8a8c2
--- /dev/null
+++ b/tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini
@@ -0,0 +1,4 @@
+[microtasks-and-constructors.html]
+ expected: CRASH
+ bug: https://github.com/servo/servo/issues/19392
+
diff --git a/tests/wpt/metadata/custom-elements/parser/parser-fallsback-to-unknown-element.html.ini b/tests/wpt/metadata/custom-elements/parser/parser-fallsback-to-unknown-element.html.ini
new file mode 100644
index 00000000000..b8c0c4d4172
--- /dev/null
+++ b/tests/wpt/metadata/custom-elements/parser/parser-fallsback-to-unknown-element.html.ini
@@ -0,0 +1,4 @@
+[parser-fallsback-to-unknown-element.html]
+ expected: CRASH
+ bug: https://github.com/servo/servo/issues/19392
+
diff --git a/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-style-element/style_load_async.html b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-style-element/style_load_async.html
new file mode 100644
index 00000000000..ef8ac89c466
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/semantics/document-metadata/the-style-element/style_load_async.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html>
+<meta charset="utf-8">
+<title>Style load event should be async</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+ var t = async_test("style load should be async");
+ var sync = true;
+ function check() {
+ assert_false(sync);
+ t.done();
+ }
+</script>
+<style onload="t.step(check)">
+</style>
+<script>
+ sync = false
+</script>
+
+<body>
+ <div id="log"></div>
+ <div id="test"></div>
+</body>
+</html>