Changeset 249123 in webkit
- Timestamp:
- Aug 26, 2019, 4:20:45 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 13 added
- 8 edited
-
TestExpectations (modified) (1 diff)
-
imported/w3c/ChangeLog (modified) (1 diff)
-
imported/w3c/resources/resource-files.json (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/closed-attribute.window-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-BarProp.window-expected.txt (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-BarProp.window.html (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-BarProp.window.js (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-sizing.window-expected.txt (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-sizing.window.html (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-sizing.window.js (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/support/BarProp-target.html (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/support/closed.html (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/support/noreferrer-target.html (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/support/sizing-target.html (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/support/w3c-import.log (modified) (2 diffs)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/w3c-import.log (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-defaults.window-expected.txt (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-defaults.window.html (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-defaults.window.js (added)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/TestExpectations
r248925 r249123 239 239 imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/ignore-opens-during-unload.window.html [ Skip ] 240 240 imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/tasks.window.html [ Skip ] 241 242 # Requires BroadcastChannel. 243 imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-BarProp.window.html [ Skip ] 244 imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-sizing.window.html [ Skip ] 241 245 242 246 # Requires additional test infrastructure. -
trunk/LayoutTests/imported/w3c/ChangeLog
r249096 r249123 1 2019-08-26 Chris Dumez <cdumez@apple.com> 2 3 Resync web-platform-tests/html/browsers/the-window-object from upstream 4 https://bugs.webkit.org/show_bug.cgi?id=201145 5 6 Reviewed by Youenn Fablet. 7 8 Resync web-platform-tests/html/browsers/the-window-object from upstream 552bd3bf8bc1be. 9 10 * resources/resource-files.json: 11 * web-platform-tests/html/browsers/the-window-object/*: 12 1 13 2019-08-26 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/resources/resource-files.json
r246406 r249123 990 990 "web-platform-tests/html/browsers/the-window-object/garbage-collection-and-browsing-contexts/non-automated/discard_iframe_history_2-3.html", 991 991 "web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/test.html", 992 "web-platform-tests/html/browsers/the-window-object/support/BarProp-target.html", 993 "web-platform-tests/html/browsers/the-window-object/support/closed.html", 992 994 "web-platform-tests/html/browsers/the-window-object/support/noopener-target.html", 995 "web-platform-tests/html/browsers/the-window-object/support/noreferrer-target.html", 996 "web-platform-tests/html/browsers/the-window-object/support/sizing-target.html", 993 997 "web-platform-tests/html/browsers/windows/browsing-context-names/001-1.html", 994 998 "web-platform-tests/html/browsers/windows/browsing-context-names/002-1.html", -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/closed-attribute.window-expected.txt
r243661 r249123 1 2 Harness Error (TIMEOUT), message = null3 1 4 2 PASS closed and same-origin nested browsing context 5 3 PASS closed/close() and same-origin auxiliary browsing context 6 TIMEOUT closed and cross-origin nested browsing context Test timed out 7 TIMEOUT closed/close() and cross-origin auxiliary browsing context Test timed out 8 TIMEOUT closed and cross-site nested browsing context Test timed out 9 TIMEOUT closed/close() and cross-site auxiliary browsing context Test timed out 4 PASS closed and cross-origin nested browsing context 5 PASS closed/close() and cross-origin auxiliary browsing context 6 PASS closed and cross-site nested browsing context 7 PASS closed/close() and cross-site auxiliary browsing context 10 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/w3c-import.log
r215822 r249123 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/BarProp-target.html 18 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/closed.html 17 19 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/noopener-target.html 20 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/noreferrer-target.html 21 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/sizing-target.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/w3c-import.log
r243634 r249123 25 25 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/length-attribute.window.js 26 26 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/name-attribute.window.js 27 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-BarProp.window.js 28 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-sizing.window.js 27 29 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/self-et-al.window.js 28 30 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-aliases.html 29 31 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-indexed-properties-strict.html 30 32 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-indexed-properties.html 33 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-defaults.window.js 31 34 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html 32 35 /LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noreferrer.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener-expected.txt
r243634 r249123 1 CONSOLE MESSAGE: line 1 17: testError: special target must be one of: _self, _parent, _top1 CONSOLE MESSAGE: line 120: testError: special target must be one of: _self, _parent, _top 2 2 3 3 FAIL window.open() with "noopener" tests testError: special target must be one of: _self, _parent, _top -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html
r243634 r249123 13 13 <script> 14 14 var testData = [ 15 { testDescription: "window.open() with 'noopener' should notreuse existing target",15 { testDescription: "window.open() with 'noopener' should reuse existing target", 16 16 secondWindowFeatureString: "noopener", 17 shouldRe use: false },17 shouldReturnWindow: false }, 18 18 { testDescription: "noopener=1 means the same as noopener", 19 19 secondWindowFeatureString: "noopener=1", 20 shouldRe use: false },20 shouldReturnWindow: false }, 21 21 { testDescription: "noopener=0 means lack of noopener", 22 22 secondWindowFeatureString: "noopener=0", 23 shouldRe use: true },24 { testDescription: "noopener needs to be present as a token on its own",23 shouldReturnWindow: true }, 24 { testDescription: "noopener separated only by spaces should work", 25 25 secondWindowFeatureString: "make me noopener", 26 shouldRe use: true },26 shouldReturnWindow: false }, 27 27 { testDescription: "Trailing noopener should work", 28 28 secondWindowFeatureString: "abc def, \n\r noopener", 29 shouldRe use: false },29 shouldReturnWindow: false }, 30 30 { testDescription: "Leading noopener should work", 31 31 secondWindowFeatureString: "noopener \f\t , hey, there", 32 shouldRe use: false },32 shouldReturnWindow: false }, 33 33 { testDescription: "Interior noopener should work", 34 34 secondWindowFeatureString: "and now, noopener , hey, there", 35 shouldReuse: false }, 35 shouldReturnWindow: false }, 36 { testDescription: "noreferrer should also suppress opener when reusing existing target", 37 secondWindowFeatureString: "noreferrer", 38 shouldReturnWindow: false }, 36 39 ]; 37 40 … … 55 58 t.windowName = "someuniquename" + i; 56 59 57 if (test.shouldRe use) {60 if (test.shouldReturnWindow) { 58 61 t.step(function() { 59 62 var windowName = this.windowName; … … 84 87 var data = e.data; 85 88 assert_equals(data.name, windowName, "Should have the right name"); 86 assert_equals(data.haveOpener, false, "Should nothave opener");89 assert_equals(data.haveOpener, true, "Should still have opener"); 87 90 assert_equals(w1.opener, window); 88 assert_ equals(w1.location.href, "about:blank");91 assert_not_equals(w1.location.href, "about:blank", "Should have navigated"); 89 92 }); 90 93
Note:
See TracChangeset
for help on using the changeset viewer.