Changeset 224152 in webkit


Ignore:
Timestamp:
Oct 28, 2017 10:38:00 AM (6 years ago)
Author:
Chris Dumez
Message:

Update testharness.js to work around our lack of support for MessagePort in service workers
https://bugs.webkit.org/show_bug.cgi?id=178977

Reviewed by Sam Weinig.

Update testharness.js to work around our lack of support for MessagePort in service workers, similarly
to what was already done for Edge.

  • web-platform-tests/resources/testharness.js:
Location:
trunk/LayoutTests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r224132 r224152  
     12017-10-28  Chris Dumez  <cdumez@apple.com>
     2
     3        Update testharness.js to work around our lack of support for MessagePort in service workers
     4        https://bugs.webkit.org/show_bug.cgi?id=178977
     5
     6        Reviewed by Sam Weinig.
     7
     8        Update testharness.js to work around our lack of support for MessagePort in service workers, similarly
     9        to what was already done for Edge.
     10
     11        * web-platform-tests/resources/testharness.js:
     12
    1132017-10-27  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/not-in-shadow-tree-expected.txt

    r223327 r224152  
    1 CONSOLE MESSAGE: line 2663: Error: assert_unreached: Got more than 1 load event Reached unreachable code
     1CONSOLE MESSAGE: line 2659: Error: assert_unreached: Got more than 1 load event Reached unreachable code
    22
    33FAIL Meta refresh only applies while in the document tree, not in a shadow tree Error: assert_unreached: Got more than 1 load event Reached unreachable code
  • trunk/LayoutTests/imported/w3c/web-platform-tests/resources/testharness.js

    r223327 r224152  
    20852085
    20862086        if (is_service_worker(worker)) {
    2087             // Microsoft Edge's implementation of ServiceWorker doesn't support MessagePort yet.
    2088             // Feature detection isn't a straightforward option here; it's only possible in the
    2089             // worker's script context.
    2090             var isMicrosoftEdgeBrowser = navigator.userAgent.includes("Edge");
    2091             if (window.MessageChannel && !isMicrosoftEdgeBrowser) {
    2092                 // The ServiceWorker's implicit MessagePort is currently not
    2093                 // reliably accessible from the ServiceWorkerGlobalScope due to
    2094                 // Blink setting MessageEvent.source to null for messages sent
    2095                 // via ServiceWorker.postMessage(). Until that's resolved,
    2096                 // create an explicit MessageChannel and pass one end to the
    2097                 // worker.
     2087            // The ServiceWorker's implicit MessagePort is currently not
     2088            // reliably accessible from the ServiceWorkerGlobalScope due to
     2089            // Blink setting MessageEvent.source to null for messages sent
     2090            // via ServiceWorker.postMessage(). Until that's resolved,
     2091            // create an explicit MessageChannel and pass one end to the
     2092            // worker.
     2093            if (window.MessageChannel && !!window.chrome) {
    20982094                var message_channel = new MessageChannel();
    20992095                message_port = message_channel.port1;
  • trunk/LayoutTests/imported/w3c/web-platform-tests/shadow-dom/slotchange-event-expected.txt

    r223327 r224152  
    1 CONSOLE MESSAGE: line 2663: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
    2 CONSOLE MESSAGE: line 2663: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
    3 CONSOLE MESSAGE: line 2663: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
    4 CONSOLE MESSAGE: line 2663: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
     1CONSOLE MESSAGE: line 2659: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
     2CONSOLE MESSAGE: line 2659: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
     3CONSOLE MESSAGE: line 2659: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
     4CONSOLE MESSAGE: line 2659: Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
    55
    66Harness Error (FAIL), message = Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/general-expected.txt

    r223327 r224152  
    11CONSOLE MESSAGE: line 16: Unhandled Promise Rejection: TypeError: The WritableStream.ready getter can only be used on instances of WritableStream
    2 CONSOLE MESSAGE: line 2894: TypeError: undefined is not an object (evaluating 'e.error')
     2CONSOLE MESSAGE: line 2890: TypeError: undefined is not an object (evaluating 'e.error')
    33CONSOLE MESSAGE: Unhandled Promise Rejection: undefined
    4 CONSOLE MESSAGE: line 2894: TypeError: undefined is not an object (evaluating 'e.error')
     4CONSOLE MESSAGE: line 2890: TypeError: undefined is not an object (evaluating 'e.error')
    55CONSOLE MESSAGE: Unhandled Promise Rejection: undefined
    66CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: cancel() called on a reader owned by no readable stream
    7 CONSOLE MESSAGE: line 2894: TypeError: undefined is not an object (evaluating 'e.error')
     7CONSOLE MESSAGE: line 2890: TypeError: undefined is not an object (evaluating 'e.error')
    88CONSOLE MESSAGE: Unhandled Promise Rejection: undefined
    9 CONSOLE MESSAGE: line 2894: TypeError: undefined is not an object (evaluating 'e.error')
     9CONSOLE MESSAGE: line 2890: TypeError: undefined is not an object (evaluating 'e.error')
    1010CONSOLE MESSAGE: Unhandled Promise Rejection: undefined
    11 CONSOLE MESSAGE: line 2894: TypeError: undefined is not an object (evaluating 'e.error')
     11CONSOLE MESSAGE: line 2890: TypeError: undefined is not an object (evaluating 'e.error')
    1212CONSOLE MESSAGE: Unhandled Promise Rejection: undefined
    1313
  • trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-cross-origin-expected.txt

    r223327 r224152  
    1 CONSOLE MESSAGE: line 2663: Error: assert_equals: should scroll to fragment expected 800 but got 0
     1CONSOLE MESSAGE: line 2659: Error: assert_equals: should scroll to fragment expected 800 but got 0
    22
    33
Note: See TracChangeset for help on using the changeset viewer.