Refresh imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 Oct 2018 22:59:15 +0000 (22:59 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 2 Oct 2018 22:59:15 +0000 (22:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=190212

Reviewed by Youenn Fablet.

Refresh imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh
from upstream f15449622a76d0.

* web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing-expected.txt:
* web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing.html:
* web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/remove-from-document-expected.txt:
* web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.sub.html: Added.
* web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/w3c-import.log:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236771 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing-expected.txt
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/remove-from-document-expected.txt
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.sub.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/w3c-import.log

index 9d3f7b5..5017b3b 100644 (file)
@@ -1,5 +1,21 @@
 2018-10-02  Chris Dumez  <cdumez@apple.com>
 
+        Refresh imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh
+        https://bugs.webkit.org/show_bug.cgi?id=190212
+
+        Reviewed by Youenn Fablet.
+
+        Refresh imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh
+        from upstream f15449622a76d0.
+
+        * web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing-expected.txt:
+        * web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/parsing.html:
+        * web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/remove-from-document-expected.txt:
+        * web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.sub.html: Added.
+        * web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/w3c-import.log:
+
+2018-10-02  Chris Dumez  <cdumez@apple.com>
+
         Image.__proto__ should be Function.prototype, not HTMLElement.prototype
         https://bugs.webkit.org/show_bug.cgi?id=190216
 
index f4b27e1..ce04745 100644 (file)
 
 Harness Error (TIMEOUT), message = null
 
-FAIL <meta>: "" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "" 
 PASS Refresh header: "" 
-TIMEOUT <meta>: "1" Test timed out
+PASS <meta>: "1" 
 PASS Refresh header: "1" 
-TIMEOUT <meta>: "1 " Test timed out
+PASS <meta>: "1 " 
 PASS Refresh header: "1 " 
-TIMEOUT <meta>: "1\t" Test timed out
+PASS <meta>: "1\t" 
 PASS Refresh header: "1\t" 
-TIMEOUT <meta>: "1\r" Test timed out
-TIMEOUT <meta>: "1\n" Test timed out
-TIMEOUT <meta>: "1\f" Test timed out
-TIMEOUT <meta>: "1;" Test timed out
+PASS <meta>: "1\r" 
+PASS <meta>: "1\n" 
+PASS <meta>: "1\f" 
+PASS <meta>: "1;" 
 PASS Refresh header: "1;" 
-TIMEOUT <meta>: "1," Test timed out
+PASS <meta>: "1," 
 PASS Refresh header: "1," 
-TIMEOUT <meta>: "1; url=foo" Test timed out
+PASS <meta>: "1; url=foo" 
 PASS Refresh header: "1; url=foo" 
-TIMEOUT <meta>: "1, url=foo" Test timed out
+PASS <meta>: "1, url=foo" 
 PASS Refresh header: "1, url=foo" 
-TIMEOUT <meta>: "1 url=foo" Test timed out
+PASS <meta>: "1 url=foo" 
 TIMEOUT Refresh header: "1 url=foo" Test timed out
-TIMEOUT <meta>: "1;\turl=foo" Test timed out
+PASS <meta>: "1;\turl=foo" 
 PASS Refresh header: "1;\turl=foo" 
-TIMEOUT <meta>: "1,\turl=foo" Test timed out
+PASS <meta>: "1,\turl=foo" 
 PASS Refresh header: "1,\turl=foo" 
-TIMEOUT <meta>: "1\turl=foo" Test timed out
+PASS <meta>: "1\turl=foo" 
 TIMEOUT Refresh header: "1\turl=foo" Test timed out
-TIMEOUT <meta>: "1;\rurl=foo" Test timed out
-TIMEOUT <meta>: "1,\rurl=foo" Test timed out
-TIMEOUT <meta>: "1\rurl=foo" Test timed out
-TIMEOUT <meta>: "1;\nurl=foo" Test timed out
-TIMEOUT <meta>: "1,\nurl=foo" Test timed out
-TIMEOUT <meta>: "1\nurl=foo" Test timed out
-TIMEOUT <meta>: "1;\furl=foo" Test timed out
-TIMEOUT <meta>: "1,\furl=foo" Test timed out
-TIMEOUT <meta>: "1\furl=foo" Test timed out
-FAIL <meta>: "1url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "1;\rurl=foo" 
+PASS <meta>: "1,\rurl=foo" 
+PASS <meta>: "1\rurl=foo" 
+PASS <meta>: "1;\nurl=foo" 
+PASS <meta>: "1,\nurl=foo" 
+PASS <meta>: "1\nurl=foo" 
+PASS <meta>: "1;\furl=foo" 
+PASS <meta>: "1,\furl=foo" 
+PASS <meta>: "1\furl=foo" 
+PASS <meta>: "1url=foo" 
 PASS Refresh header: "1url=foo" 
-FAIL <meta>: "1x;url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "1x;url=foo" 
 PASS Refresh header: "1x;url=foo" 
-TIMEOUT <meta>: "1 x;url=foo" Test timed out
+PASS <meta>: "1 x;url=foo" 
 TIMEOUT Refresh header: "1 x;url=foo" Test timed out
-TIMEOUT <meta>: "1;;url=foo" Test timed out
+PASS <meta>: "1;;url=foo" 
 PASS Refresh header: "1;;url=foo" 
-TIMEOUT <meta>: "  1  ;  url  =  foo" Test timed out
+PASS <meta>: "  1  ;  url  =  foo" 
 PASS Refresh header: "  1  ;  url  =  foo" 
-TIMEOUT <meta>: "  1  ,  url  =  foo" Test timed out
+PASS <meta>: "  1  ,  url  =  foo" 
 PASS Refresh header: "  1  ,  url  =  foo" 
-TIMEOUT <meta>: "  1  ;  foo" Test timed out
+PASS <meta>: "  1  ;  foo" 
 PASS Refresh header: "  1  ;  foo" 
-TIMEOUT <meta>: "  1  ,  foo" Test timed out
+PASS <meta>: "  1  ,  foo" 
 PASS Refresh header: "  1  ,  foo" 
-TIMEOUT <meta>: "  1  url  =  foo" Test timed out
+PASS <meta>: "  1  url  =  foo" 
 TIMEOUT Refresh header: "  1  url  =  foo" Test timed out
-TIMEOUT <meta>: "1; url=foo " Test timed out
+PASS <meta>: "1; url=foo " 
 PASS Refresh header: "1; url=foo " 
-TIMEOUT <meta>: "1; url=f\to\no" Test timed out
-TIMEOUT <meta>: "1; url=\"foo\"bar" Test timed out
+PASS <meta>: "1; url=f\to\no" 
+PASS <meta>: "1; url=\"foo\"bar" 
 PASS Refresh header: "1; url=\"foo\"bar" 
-TIMEOUT <meta>: "1; url='foo'bar" Test timed out
+PASS <meta>: "1; url='foo'bar" 
 PASS Refresh header: "1; url='foo'bar" 
-TIMEOUT <meta>: "1; url=\"foo'bar" Test timed out
+PASS <meta>: "1; url=\"foo'bar" 
 PASS Refresh header: "1; url=\"foo'bar" 
-TIMEOUT <meta>: "1; url foo" Test timed out
+PASS <meta>: "1; url foo" 
 PASS Refresh header: "1; url foo" 
-TIMEOUT <meta>: "1; urlfoo" Test timed out
+PASS <meta>: "1; urlfoo" 
 PASS Refresh header: "1; urlfoo" 
-TIMEOUT <meta>: "1; urfoo" Test timed out
+PASS <meta>: "1; urfoo" 
 PASS Refresh header: "1; urfoo" 
-TIMEOUT <meta>: "1; ufoo" Test timed out
+PASS <meta>: "1; ufoo" 
 PASS Refresh header: "1; ufoo" 
-TIMEOUT <meta>: "1; \"foo\"bar" Test timed out
+PASS <meta>: "1; \"foo\"bar" 
 PASS Refresh header: "1; \"foo\"bar" 
-FAIL <meta>: "; foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "; foo" 
 PASS Refresh header: "; foo" 
-FAIL <meta>: ";foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: ";foo" 
 PASS Refresh header: ";foo" 
-FAIL <meta>: ", foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: ", foo" 
 PASS Refresh header: ", foo" 
-FAIL <meta>: ",foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: ",foo" 
 PASS Refresh header: ",foo" 
-FAIL <meta>: "foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "foo" 
 PASS Refresh header: "foo" 
-FAIL <meta>: "+1; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "+1; url=foo" 
 FAIL Refresh header: "+1; url=foo" assert_equals: expected "refresh.py" but got "foo"
-FAIL <meta>: "-1; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "-1; url=foo" 
 PASS Refresh header: "-1; url=foo" 
-FAIL <meta>: "+0; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "+0; url=foo" 
 FAIL Refresh header: "+0; url=foo" assert_equals: expected "refresh.py" but got "foo"
-FAIL <meta>: "-0; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "-0; url=foo" 
 FAIL Refresh header: "-0; url=foo" assert_equals: expected "refresh.py" but got "foo"
-TIMEOUT <meta>: "0; url=foo" Test timed out
+PASS <meta>: "0; url=foo" 
 PASS Refresh header: "0; url=foo" 
-FAIL <meta>: "+1; foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "+1; foo" 
 FAIL Refresh header: "+1; foo" assert_equals: expected "refresh.py" but got "foo"
-FAIL <meta>: "-1; foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "-1; foo" 
 PASS Refresh header: "-1; foo" 
-FAIL <meta>: "+0; foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "+0; foo" 
 FAIL Refresh header: "+0; foo" assert_equals: expected "refresh.py" but got "foo"
-FAIL <meta>: "-0; foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "-0; foo" 
 FAIL Refresh header: "-0; foo" assert_equals: expected "refresh.py" but got "foo"
-TIMEOUT <meta>: "0; foo" Test timed out
+PASS <meta>: "0; foo" 
 PASS Refresh header: "0; foo" 
-FAIL <meta>: "+1" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "+1" 
 FAIL Refresh header: "+1" assert_unreached: Got > 1 load events Reached unreachable code
-FAIL <meta>: "-1" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "-1" 
 PASS Refresh header: "-1" 
-FAIL <meta>: "+0" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "+0" 
 FAIL Refresh header: "+0" assert_unreached: Got > 1 load events Reached unreachable code
-FAIL <meta>: "-0" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "-0" 
 FAIL Refresh header: "-0" assert_unreached: Got > 1 load events Reached unreachable code
-TIMEOUT <meta>: "0" Test timed out
+PASS <meta>: "0" 
 PASS Refresh header: "0" 
-TIMEOUT <meta>: "1.9; url=foo" Test timed out
+PASS <meta>: "1.9; url=foo" 
 PASS Refresh header: "1.9; url=foo" 
-TIMEOUT <meta>: "1.9..5.; url=foo" Test timed out
+PASS <meta>: "1.9..5.; url=foo" 
 TIMEOUT Refresh header: "1.9..5.; url=foo" Test timed out
-TIMEOUT <meta>: ".9; url=foo" Test timed out
+PASS <meta>: ".9; url=foo" 
 PASS Refresh header: ".9; url=foo" 
-TIMEOUT <meta>: "0.9; url=foo" Test timed out
+PASS <meta>: "0.9; url=foo" 
 PASS Refresh header: "0.9; url=foo" 
-TIMEOUT <meta>: "0...9; url=foo" Test timed out
+PASS <meta>: "0...9; url=foo" 
 TIMEOUT Refresh header: "0...9; url=foo" Test timed out
-TIMEOUT <meta>: "0...; url=foo" Test timed out
+PASS <meta>: "0...; url=foo" 
 TIMEOUT Refresh header: "0...; url=foo" Test timed out
-FAIL <meta>: "1e0; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "1e0; url=foo" 
 FAIL Refresh header: "1e0; url=foo" assert_equals: expected "refresh.py" but got "foo"
-FAIL <meta>: "1e1; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "1e1; url=foo" 
 PASS Refresh header: "1e1; url=foo" 
-FAIL <meta>: "10e-1; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "10e-1; url=foo" 
 FAIL Refresh header: "10e-1; url=foo" assert_equals: expected "refresh.py" but got "foo"
-FAIL <meta>: "-0.1; url=foo" assert_equals: expected "refresh.sub.html" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
+PASS <meta>: "-0.1; url=foo" 
 PASS Refresh header: "-0.1; url=foo" 
 
index f0dade8..0548e70 100644 (file)
@@ -1,9 +1,23 @@
 <!doctype html>
 <meta charset=utf-8>
-<meta name=timeout content=long>
+<meta name="variant" content="?1-10">
+<meta name="variant" content="?11-20">
+<meta name="variant" content="?21-30">
+<meta name="variant" content="?31-40">
+<meta name="variant" content="?41-50">
+<meta name="variant" content="?51-60">
+<meta name="variant" content="?61-70">
+<meta name="variant" content="?71-80">
+<meta name="variant" content="?81-90">
+<meta name="variant" content="?91-100">
+<meta name="variant" content="?101-110">
+<meta name="variant" content="?111-120">
+<meta name="variant" content="?121-130">
+<meta name="variant" content="?131-last">
 <title>Parsing of meta refresh</title>
 <script src=/resources/testharness.js></script>
 <script src=/resources/testharnessreport.js></script>
+<script src=/common/subset-tests.js></script>
 <style>
 iframe { display:none }
 </style>
@@ -95,7 +109,7 @@ tests_arr.forEach(function(test_obj) {
       return;
     }
     const filename = type === "<meta>" ? "refresh.sub.html" : "refresh.py";
-    async_test(function(t) {
+    subsetTest(async_test, function(t) {
       var iframe = document.createElement('iframe');
       t.add_cleanup(function() {
         document.body.removeChild(iframe);
index 99c5fa0..bbad626 100644 (file)
@@ -1,4 +1,3 @@
-CONSOLE MESSAGE: line 29: TypeError: null is not an object (evaluating 'sourceIFrame.contentDocument.querySelector("meta").remove')
 
-FAIL A meta must refresh the original document even if it was removed. TypeError: null is not an object (evaluating 'sourceIFrame.contentDocument.querySelector("meta").remove')
+PASS A meta must refresh the original document even if it was removed. 
 
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.sub.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.sub.html
new file mode 100644 (file)
index 0000000..bc97f29
--- /dev/null
@@ -0,0 +1 @@
+<!doctype html><meta http-equiv=refresh content="{{GET[input]}}">refresh.sub.html
index c38782a..235410b 100644 (file)
@@ -19,6 +19,7 @@ List of files:
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/foo
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/foo'bar
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.py
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/refresh.sub.html
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/ufoo
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/urfoo
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/url foo