Update web-platform-tests to revision 602e5ae0765eed1afc690e884f1963c3fb03665f

This commit is contained in:
WPT Sync Bot 2020-10-20 08:20:48 +00:00
parent 938e96b68c
commit 35e56e2bee
346 changed files with 6448 additions and 445 deletions

View file

@ -0,0 +1,4 @@
[hit-test-floats-002.html]
[Hit test float]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

View file

@ -1,4 +0,0 @@
[elementFromPoint-001.html]
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

View file

@ -0,0 +1,4 @@
[elementsFromPoint-invalid-cases.html]
[The root element is the last element returned for otherwise empty queries within the viewport]
expected: FAIL

View file

@ -0,0 +1,5 @@
[is-where-basic.html]
expected: ERROR
[:is() matches expected elements]
expected: FAIL

View file

@ -1,4 +1,4 @@
[is-where-error-recovery.tentative.html] [is-where-error-recovery.html]
[CSS Selectors: :is() and :where() error recovery] [CSS Selectors: :is() and :where() error recovery]
expected: FAIL expected: FAIL

View file

@ -315,18 +315,18 @@
[<iframe>: combined response Content-Type: text/html;" text/plain] [<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL expected: FAIL
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*] [<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL expected: FAIL
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" text/plain] [<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL expected: FAIL
[<iframe>: separate response Content-Type: text/html;" \\" text/plain] [<iframe>: separate response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL expected: FAIL

View file

@ -53,6 +53,9 @@
[combined text/javascript ] [combined text/javascript ]
expected: FAIL expected: FAIL
[separate text/javascript x/x] [separate text/javascript;charset=windows-1252 text/javascript]
expected: FAIL
[separate text/javascript ]
expected: FAIL expected: FAIL

View file

@ -11,6 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!] [X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
expected: FAIL expected: FAIL
[X-Content-Type-Options%3A%20'NosniFF'] [X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff]
expected: FAIL expected: FAIL

View file

@ -1,4 +0,0 @@
[traverse_the_history_5.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

View file

@ -1,4 +1,5 @@
[supported-elements.html] [supported-elements.html]
expected: TIMEOUT
[Contenteditable element should support autofocus] [Contenteditable element should support autofocus]
expected: FAIL expected: FAIL
@ -9,7 +10,7 @@
expected: FAIL expected: FAIL
[Area element should support autofocus] [Area element should support autofocus]
expected: FAIL expected: TIMEOUT
[Host element with delegatesFocus should support autofocus] [Host element with delegatesFocus should support autofocus]
expected: FAIL expected: FAIL

View file

@ -171,3 +171,6 @@
[XHTML img usemap="#hash-id"] [XHTML img usemap="#hash-id"]
expected: FAIL expected: FAIL
[HTML (standards) IMG usemap="no-hash-name"]
expected: FAIL

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_escaping-1.html] [iframe_sandbox_popups_escaping-1.html]
expected: TIMEOUT expected: CRASH
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used] [Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT expected: TIMEOUT

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_nonescaping-1.html] [iframe_sandbox_popups_nonescaping-1.html]
expected: CRASH expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox] [Check that popups from a sandboxed iframe do not escape the sandbox]
expected: NOTRUN expected: NOTRUN

View file

@ -1,4 +1,5 @@
[iframe_sandbox_popups_nonescaping-3.html] [iframe_sandbox_popups_nonescaping-3.html]
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox] [Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL expected: NOTRUN

View file

@ -1,14 +1,13 @@
[htmlanchorelement_noopener.html] [htmlanchorelement_noopener.html]
expected: TIMEOUT
[Check that targeting of rel=noopener with a given name reuses an existing window with that name] [Check that targeting of rel=noopener with a given name reuses an existing window with that name]
expected: FAIL expected: FAIL
[Check that rel=noopener with target=_top does a normal load] [Check that rel=noopener with target=_top does a normal load]
expected: NOTRUN expected: FAIL
[Check that rel=noopener with target=_parent does a normal load] [Check that rel=noopener with target=_parent does a normal load]
expected: NOTRUN expected: FAIL
[Check that rel=noopener with target=_self does a normal load] [Check that rel=noopener with target=_self does a normal load]
expected: NOTRUN expected: FAIL

View file

@ -0,0 +1,4 @@
[module-static-import-delayed.html]
[document.write in an imported module]
expected: FAIL

View file

@ -1,7 +1,6 @@
[promise-rejection-events.html] [promise-rejection-events.html]
expected: TIMEOUT
[delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire] [delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire]
expected: TIMEOUT expected: FAIL
[unhandledrejection: from createImageBitmap which is UA triggered] [unhandledrejection: from createImageBitmap which is UA triggered]
expected: FAIL expected: FAIL

View file

@ -164,3 +164,6 @@
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t2.9820817510119912e-20\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n] [X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t2.9820817510119912e-20\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
expected: FAIL expected: FAIL
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t-4.5730330770610604e-25\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
expected: FAIL

View file

@ -1,4 +1,5 @@
[audiocontext-not-fully-active.html] [audiocontext-not-fully-active.html]
expected: TIMEOUT
[frame in navigated remote-site frame] [frame in navigated remote-site frame]
expected: FAIL expected: FAIL

View file

@ -1,5 +0,0 @@
[017.html]
expected: TIMEOUT
[origin of the script that invoked the method, about:blank]
expected: TIMEOUT

View file

@ -1,5 +0,0 @@
[018.html]
expected: TIMEOUT
[origin of the script that invoked the method, javascript:]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[Worker-constructor.html]
expected: ERROR

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
[hit-test-floats-002.html]
[Hit test float]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

View file

@ -1,4 +0,0 @@
[elementFromPoint-001.html]
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

View file

@ -0,0 +1,4 @@
[elementsFromPoint-invalid-cases.html]
[The root element is the last element returned for otherwise empty queries within the viewport]
expected: FAIL

View file

@ -0,0 +1,5 @@
[is-where-basic.html]
expected: ERROR
[:is() matches expected elements]
expected: FAIL

View file

@ -0,0 +1,4 @@
[is-where-error-recovery.html]
[CSS Selectors: :is() and :where() error recovery]
expected: FAIL

View file

@ -315,18 +315,18 @@
[<iframe>: combined response Content-Type: text/html;" text/plain] [<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL expected: FAIL
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*] [<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL expected: FAIL
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" text/plain] [<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL expected: FAIL
[<iframe>: separate response Content-Type: text/html;" \\" text/plain] [<iframe>: separate response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL expected: FAIL

View file

@ -53,6 +53,9 @@
[combined text/javascript ] [combined text/javascript ]
expected: FAIL expected: FAIL
[separate text/javascript x/x] [separate text/javascript;charset=windows-1252 text/javascript]
expected: FAIL
[separate text/javascript ]
expected: FAIL expected: FAIL

View file

@ -11,6 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!] [X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
expected: FAIL expected: FAIL
[X-Content-Type-Options%3A%20'NosniFF'] [X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff]
expected: FAIL expected: FAIL

View file

@ -1,4 +0,0 @@
[traverse_the_history_5.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

View file

@ -1,4 +1,5 @@
[supported-elements.html] [supported-elements.html]
expected: TIMEOUT
[Contenteditable element should support autofocus] [Contenteditable element should support autofocus]
expected: FAIL expected: FAIL
@ -9,7 +10,7 @@
expected: FAIL expected: FAIL
[Area element should support autofocus] [Area element should support autofocus]
expected: FAIL expected: TIMEOUT
[Host element with delegatesFocus should support autofocus] [Host element with delegatesFocus should support autofocus]
expected: FAIL expected: FAIL

View file

@ -172,3 +172,6 @@
[XHTML img usemap="http://example.org/#garbage-before-hash-id"] [XHTML img usemap="http://example.org/#garbage-before-hash-id"]
expected: FAIL expected: FAIL
[HTML (standards) IMG usemap="no-hash-name"]
expected: FAIL

View file

@ -1,6 +1,6 @@
[iframe_sandbox_popups_escaping-1.html] [iframe_sandbox_popups_escaping-1.html]
type: testharness type: testharness
expected: TIMEOUT expected: CRASH
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used] [Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT expected: TIMEOUT

View file

@ -1,6 +1,6 @@
[iframe_sandbox_popups_nonescaping-1.html] [iframe_sandbox_popups_nonescaping-1.html]
type: testharness type: testharness
expected: CRASH expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox] [Check that popups from a sandboxed iframe do not escape the sandbox]
expected: NOTRUN expected: NOTRUN

View file

@ -1,5 +1,6 @@
[iframe_sandbox_popups_nonescaping-3.html] [iframe_sandbox_popups_nonescaping-3.html]
type: testharness type: testharness
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox] [Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL expected: NOTRUN

View file

@ -1,6 +1,5 @@
[htmlanchorelement_noopener.html] [htmlanchorelement_noopener.html]
type: testharness type: testharness
expected: TIMEOUT
[Check that targeting of rel=noopener with a given name ignores an existing window with that name] [Check that targeting of rel=noopener with a given name ignores an existing window with that name]
expected: NOTRUN expected: NOTRUN
@ -8,11 +7,11 @@
expected: FAIL expected: FAIL
[Check that rel=noopener with target=_top does a normal load] [Check that rel=noopener with target=_top does a normal load]
expected: NOTRUN expected: FAIL
[Check that rel=noopener with target=_parent does a normal load] [Check that rel=noopener with target=_parent does a normal load]
expected: NOTRUN expected: FAIL
[Check that rel=noopener with target=_self does a normal load] [Check that rel=noopener with target=_self does a normal load]
expected: NOTRUN expected: FAIL

View file

@ -0,0 +1,4 @@
[module-static-import-delayed.html]
[document.write in an imported module]
expected: FAIL

View file

@ -1,7 +1,6 @@
[promise-rejection-events.html] [promise-rejection-events.html]
expected: TIMEOUT
[delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire] [delayed handling: delaying handling rejected promise created from createImageBitmap will cause both events to fire]
expected: TIMEOUT expected: FAIL
[unhandledrejection: from createImageBitmap which is UA triggered] [unhandledrejection: from createImageBitmap which is UA triggered]
expected: FAIL expected: FAIL

View file

@ -392,3 +392,6 @@
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t2.9820817510119912e-20\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n] [X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t2.9820817510119912e-20\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
expected: FAIL expected: FAIL
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t-4.5730330770610604e-25\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
expected: FAIL

View file

@ -1,4 +1,5 @@
[audiocontext-not-fully-active.html] [audiocontext-not-fully-active.html]
expected: TIMEOUT
[frame in navigated remote-site frame] [frame in navigated remote-site frame]
expected: FAIL expected: FAIL

View file

@ -1,5 +0,0 @@
[017.html]
expected: TIMEOUT
[origin of the script that invoked the method, about:blank]
expected: TIMEOUT

View file

@ -1,5 +0,0 @@
[018.html]
expected: TIMEOUT
[origin of the script that invoked the method, javascript:]
expected: TIMEOUT

View file

@ -0,0 +1,2 @@
[Worker-constructor.html]
expected: ERROR

View file

@ -10,14 +10,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -9,14 +9,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -9,14 +9,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -9,14 +9,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -10,14 +10,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -10,14 +10,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -9,14 +9,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -10,14 +10,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -9,14 +9,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -10,14 +10,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -9,7 +9,7 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="cookie-http-state-template.js"></script> <script src="cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h1>Cookie Tests</h1> <h1>Cookie Tests</h1>
This page is a debug page for cookie tests. To run a test in isolation, This page is a debug page for cookie tests. To run a test in isolation,
append "?debug=" and the test id to this URL. E.g. to debug "value0001", use append "?debug=" and the test id to this URL. E.g. to debug "value0001", use
@ -51,17 +51,10 @@
Below, all tests are running. The Log contains messages (e.g. when cookies Below, all tests are running. The Log contains messages (e.g. when cookies
are left over) and the IFrames list preserves all requested files and shows are left over) and the IFrames list preserves all requested files and shows
which cookies were expected to show. <br> which cookies were expected to show. <br>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<!-- No element should come after this - the test harness appends the result
here when it finished running all of them. -->
<script type="text/javascript"> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });
const TEST_CASES = [%s]; const TEST_CASES = [%s];

View file

@ -8,24 +8,14 @@
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="cookie-http-state-template.js"></script> <script src="cookie-http-state-template.js"></script>
<style type="text/css">
.scrollable {
height:150px;
overflow-y:scroll;
}
</style>
</head> </head>
<body> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" class="scrollable"></div> <div id="iframes"></div>
<h3>IFrame</h3>
<div id="iframes" class="toggleable scrollable"></div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });
promise_test(createCookieTest("%s"), "DEBUG"); promise_test(createCookieTest("%s"), "DEBUG");
</script> </script>
</body> </body>
</html> </html>

View file

@ -9,14 +9,9 @@
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-http-state-template.js"></script> <script src="resources/cookie-http-state-template.js"></script>
</head> </head>
<body style="background:#EEE"> <body>
<h3>Log</h3> <div id="log"></div>
<div id="log" style="height:50px; overflow-y:scroll; background: #FFF"> <div id="iframes"></div>
</div>
<h3>IFrames</h3>
<div id="iframes" style="height:170px; overflow-y:scroll; background: #FFF">
</div>
<h3>Test Results</h3>
<script> <script>
setup({ explicit_timeout: true }); setup({ explicit_timeout: true });

View file

@ -0,0 +1,27 @@
// META: script=resources/support.js
//
// Spec: https://wicg.github.io/cors-rfc1918/#integration-html
//
// This file covers only those tests that must execute in a secure context.
// Other tests are defined in: address-space.window.js
'use strict';
setup(() => {
// No sense running tests if `document.addressSpace` is not implemented.
assert_implements(document.addressSpace);
// The tests below assume that the root document is loaded from the `local`
// address space. This might fail depending on how the tests are run/served.
// See https://github.com/web-platform-tests/wpt/issues/26166.
assert_implements_optional(document.addressSpace == "local");
});
promise_test(t => {
return append_child_frame(t, document, "resources/treat-as-public-address.https.html")
.then(child => {
return append_child_frame(t, child.contentDocument, "/common/blank.html");
})
.then(grandchild => {
assert_equals(grandchild.contentDocument.addressSpace, "local");
});
}, "Public-local grandchild iframe's addressSpace is local");

View file

@ -0,0 +1,98 @@
// META: script=resources/support.js
//
// Spec: https://wicg.github.io/cors-rfc1918/#integration-html
//
// See also: address-space.https.window.js
'use strict';
const kMinimalDoc = [
"<!doctype html>",
"<meta charset=utf-8>",
"<title>Loaded</title>",
].join("");
setup(() => {
// No sense running tests if `document.addressSpace` is not implemented.
assert_implements(document.addressSpace);
// The tests below assume that the root document is loaded from the `local`
// address space. This might fail depending on how the tests are run/served.
// See https://github.com/web-platform-tests/wpt/issues/26166.
assert_implements_optional(document.addressSpace == "local");
});
promise_test(t => {
return append_child_frame_with(t, document, () => {
// Do nothing with the child frame's `src` attribute.
})
.then(child => {
assert_equals(child.contentDocument.addressSpace, "local");
});
}, "About:blank iframe's addressSpace is inherited from the root.");
promise_test(t => {
return append_child_frame_with(t, document, child => {
child.srcdoc = kMinimalDoc;
})
.then(child => {
assert_equals(child.contentDocument.title, "Loaded");
assert_equals(child.contentDocument.addressSpace, "local");
});
}, "About:srcdoc iframe's addressSpace is inherited from the root.");
promise_test(t => {
// Register an event listener that will resolve this promise when this window
// receives a message posted to it.
const event_received = new Promise(resolve => {
window.addEventListener("message", resolve);
});
const script = "window.parent.postMessage(document.addressSpace, '*');";
const url = "data:text/html,<script>" + script + "</script>";
return append_child_frame(t, document, url)
// Wait for the iframe to be loaded, then wait for an event.
.then(() => event_received)
.then(evt => {
assert_equals(evt.data, "local");
});
}, "Data: iframe's addressSpace is inherited from the root.");
promise_test(t => {
const blob = new Blob([kMinimalDoc], {type: "text/html"});
return append_child_frame(t, document, URL.createObjectURL(blob))
.then(child => {
assert_equals(child.contentDocument.title, "Loaded");
assert_equals(child.contentDocument.addressSpace, "local");
});
}, "Blob: iframe's addressSpace is inherited from the root.");
promise_test(t => {
return append_child_frame(t, document, "resources/title.html")
.then(child => {
assert_equals(child.contentDocument.title, "Loaded");
assert_equals(child.contentDocument.addressSpace, "local");
});
}, "Local iframe's addressSpace is local.");
promise_test(t => {
return append_child_frame(t, document, "resources/treat-as-public-address.html")
.then(child => {
assert_equals(child.contentDocument.title, "Loaded");
assert_equals(child.contentDocument.addressSpace, "public");
});
}, "Treat-as-public-address iframe's addressSpace is public.");
promise_test(t => {
return append_child_frame(t, document, "resources/title.html")
.then(child => {
const doc = child.contentDocument;
assert_equals(doc.title, "Loaded", "child");
assert_equals(doc.addressSpace, "local", "child");
return append_child_frame(t, doc, "resources/treat-as-public-address.html");
})
.then(grandchild => {
const doc = grandchild.contentDocument;
assert_equals(doc.title, "Loaded", "grandchild");
assert_equals(doc.addressSpace, "local", "grandchild");
});
}, "Local-local grandchild iframe's addressSpace is local.");

View file

@ -0,0 +1,27 @@
'use strict';
// Creates a new iframe in |doc|, calls |func| on it and appends it as a child
// of |doc|.
// Returns a promise that resolves to the iframe once loaded (successfully or
// not).
// The iframe is removed from |doc| once test |t| is done running.
//
// NOTE: Because iframe elements always invoke the onload event handler, even
// in case of error, we cannot wire onerror to a promise rejection. The Promise
// constructor requires users to resolve XOR reject the promise.
function append_child_frame_with(t, doc, func) {
return new Promise(resolve => {
const child = doc.createElement("iframe");
func(child);
child.onload = () => { resolve(child); };
doc.body.appendChild(child);
t.add_cleanup(() => { doc.body.removeChild(child); });
});
}
// Appends a child iframe to |doc| sourced from |src|.
//
// See append_child_frame_with() for more details.
function append_child_frame(t, doc, src) {
return append_child_frame_with(t, doc, child => { child.src = src; });
}

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Loaded</title>

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Loaded</title>

View file

@ -0,0 +1 @@
Content-Security-Policy: treat-as-public-address;

View file

@ -0,0 +1,3 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Loaded</title>

View file

@ -0,0 +1 @@
Content-Security-Policy: treat-as-public-address;

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1138851">
<p>Test passes if there is a filled green square.</p>
<div style="position: relative;">
<canvas width="200" style="background: green; width: 100px; height: 100px; position: absolute; display: table;"></canvas>
</div>

Some files were not shown because too many files have changed in this diff Show more