⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249123 in webkit


Ignore:
Timestamp:
Aug 26, 2019, 4:20:45 PM (7 years ago)
Author:
Chris Dumez
Message:

Resync web-platform-tests/html/browsers/the-window-object from upstream
https://bugs.webkit.org/show_bug.cgi?id=201145

Reviewed by Youenn Fablet.

Resync web-platform-tests/html/browsers/the-window-object from upstream 552bd3bf8bc1be.

  • resources/resource-files.json:
  • web-platform-tests/html/browsers/the-window-object/*:
Location:
trunk/LayoutTests
Files:
13 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/TestExpectations

    r248925 r249123  
    239239imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/ignore-opens-during-unload.window.html [ Skip ]
    240240imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/tasks.window.html [ Skip ]
     241
     242# Requires BroadcastChannel.
     243imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-BarProp.window.html [ Skip ]
     244imported/w3c/web-platform-tests/html/browsers/the-window-object/noopener-noreferrer-sizing.window.html [ Skip ]
    241245
    242246# Requires additional test infrastructure.
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r249096 r249123  
     12019-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
    1132019-08-26  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/LayoutTests/imported/w3c/resources/resource-files.json

    r246406 r249123  
    990990        "web-platform-tests/html/browsers/the-window-object/garbage-collection-and-browsing-contexts/non-automated/discard_iframe_history_2-3.html",
    991991        "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",
    992994        "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",
    993997        "web-platform-tests/html/browsers/windows/browsing-context-names/001-1.html",
    994998        "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 = null
    31
    42PASS closed and same-origin nested browsing context
    53PASS 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
     4PASS closed and cross-origin nested browsing context
     5PASS closed/close() and cross-origin auxiliary browsing context
     6PASS closed and cross-site nested browsing context
     7PASS closed/close() and cross-site auxiliary browsing context
    108
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/support/w3c-import.log

    r215822 r249123  
    22Do NOT modify these tests directly in WebKit.
    33Instead, create a pull request on the WPT github:
    4         https://github.com/w3c/web-platform-tests
     4        https://github.com/web-platform-tests/wpt
    55
    66Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
     
    1515------------------------------------------------------------------------
    1616List 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
    1719/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  
    2525/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/length-attribute.window.js
    2626/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
    2729/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/self-et-al.window.js
    2830/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-aliases.html
    2931/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-indexed-properties-strict.html
    3032/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
    3134/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/window-open-noopener.html
    3235/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 117: testError: special target must be one of: _self, _parent, _top
     1CONSOLE MESSAGE: line 120: testError: special target must be one of: _self, _parent, _top
    22
    33FAIL 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  
    1313<script>
    1414var testData = [
    15   { testDescription: "window.open() with 'noopener' should not reuse existing target",
     15  { testDescription: "window.open() with 'noopener' should reuse existing target",
    1616    secondWindowFeatureString: "noopener",
    17     shouldReuse: false },
     17    shouldReturnWindow: false },
    1818  { testDescription: "noopener=1 means the same as noopener",
    1919    secondWindowFeatureString: "noopener=1",
    20     shouldReuse: false },
     20    shouldReturnWindow: false },
    2121  { testDescription: "noopener=0 means lack of noopener",
    2222    secondWindowFeatureString: "noopener=0",
    23     shouldReuse: 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",
    2525    secondWindowFeatureString: "make me noopener",
    26     shouldReuse: true },
     26    shouldReturnWindow: false },
    2727  { testDescription: "Trailing noopener should work",
    2828    secondWindowFeatureString: "abc def,  \n\r noopener",
    29     shouldReuse: false },
     29    shouldReturnWindow: false },
    3030  { testDescription: "Leading noopener should work",
    3131    secondWindowFeatureString: "noopener \f\t , hey, there",
    32     shouldReuse: false },
     32    shouldReturnWindow: false },
    3333  { testDescription: "Interior noopener should work",
    3434    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 },
    3639];
    3740
     
    5558    t.windowName = "someuniquename" + i;
    5659
    57     if (test.shouldReuse) {
     60    if (test.shouldReturnWindow) {
    5861      t.step(function() {
    5962        var windowName = this.windowName;
     
    8487          var data = e.data;
    8588          assert_equals(data.name, windowName, "Should have the right name");
    86           assert_equals(data.haveOpener, false, "Should not have opener");
     89          assert_equals(data.haveOpener, true, "Should still have opener");
    8790          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");
    8992        });
    9093
Note: See TracChangeset for help on using the changeset viewer.