imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-* LayoutTests...
authorMs2ger@igalia.com <Ms2ger@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Apr 2018 12:10:44 +0000 (12:10 +0000)
committerMs2ger@igalia.com <Ms2ger@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Apr 2018 12:10:44 +0000 (12:10 +0000)
https://bugs.webkit.org/show_bug.cgi?id=182833

Reviewed by Carlos Alberto Lopez Perez.

LayoutTests/imported/w3c:

* web-platform-tests/2dcontext/imagebitmap/common.sub.js: ensure event handlers aren't garbage collected
* web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations

LayoutTests:

* TestExpectations: enable tests
* platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations
* platform/ios/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations
* platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations

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

LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/common.sub.js
LayoutTests/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt
LayoutTests/platform/ios/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args-expected.txt
LayoutTests/platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt

index 4625d25..0a55318 100644 (file)
@@ -1,3 +1,15 @@
+2018-04-25  Ms2ger  <Ms2ger@igalia.com>
+
+        imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-* LayoutTests are flaky failures
+        https://bugs.webkit.org/show_bug.cgi?id=182833
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        * TestExpectations: enable tests
+        * platform/gtk/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations
+        * platform/ios/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations
+        * platform/wpe/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations
+
 2018-04-24  Simon Fraser  <simon.fraser@apple.com>
 
         Add a new "color-filter" CSS property as an experimental feature
index 6ea3bc8..f3c268f 100644 (file)
@@ -1883,11 +1883,6 @@ webkit.org/b/182928 http/tests/cache-storage/cache-representation.https.html [ P
 
 webkit.org/b/116621 fast/replaced/preferred-widths.html [ Pass Failure ]
 
-webkit.org/b/182833 imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage.html [ Skip ]
-webkit.org/b/182833 imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-invalid-args.html [ Pass Failure ]
-webkit.org/b/182833 imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub.html [ Pass Failure ]
-webkit.org/b/182833 imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html [ Pass Failure ]
-
 webkit.org/b/184198 imported/w3c/web-platform-tests/html/browsers/offline/appcache/workers/appcache-worker.html [ Pass Failure ]
 
 webkit.org/b/184058 storage/indexeddb/dont-wedge-private.html [ Pass Failure ]
index 08115e7..5f1a4cd 100644 (file)
@@ -1,3 +1,13 @@
+2018-04-25  Ms2ger  <Ms2ger@igalia.com>
+
+        imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-* LayoutTests are flaky failures
+        https://bugs.webkit.org/show_bug.cgi?id=182833
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        * web-platform-tests/2dcontext/imagebitmap/common.sub.js: ensure event handlers aren't garbage collected
+        * web-platform-tests/2dcontext/imagebitmap/createImageBitmap-origin.sub-expected.txt: update expectations
+
 2018-04-24  John Wilander  <wilander@apple.com>
 
         From-Origin: Support for 'same' and 'same-site' response header, nested frame origin check
index d4d8419..7f99396 100644 (file)
@@ -32,35 +32,43 @@ function makeOffscreenCanvas() {
     });
 }
 
+var imageBitmapVideoPromise = new Promise(function(resolve, reject) {
+    var video = document.createElement("video");
+    video.oncanplaythrough = function() {
+        resolve(video);
+    };
+    video.onerror = reject;
+    video.src = getVideoURI("/images/pattern");
+
+    // Prevent WebKit from garbage collecting event handlers.
+    window._video = video;
+});
+
 function makeVideo() {
-    return new Promise(function(resolve, reject) {
-        var video = document.createElement("video");
-        video.oncanplaythrough = function() {
-            resolve(video);
-        };
-        video.onerror = reject;
-        video.src = getVideoURI("/images/pattern");
-    });
+    return imageBitmapVideoPromise;
 }
 
-function makeDataUrlVideo() {
-    const toDataUrl = (type, buffer) => {
-        const encoded = btoa(String.fromCodePoint(...new Uint8Array(buffer)));
-        return `data:${type};base64,${encoded}`
-    };
+var imageBitmapDataUrlVideoPromise = fetch(getVideoURI("/images/pattern"))
+    .then(response => Promise.all([response.headers.get("Content-Type"), response.arrayBuffer()]))
+    .then(([type, data]) => {
+        return new Promise(function(resolve, reject) {
+            var video = document.createElement("video");
+            video.oncanplaythrough = function() {
+                resolve(video);
+            };
+            video.onerror = reject;
+
+            var encoded = btoa(String.fromCodePoint(...new Uint8Array(data)));
+            var dataUrl = `data:${type};base64,${encoded}`;
+            video.src = dataUrl;
 
-    return fetch(getVideoURI("/images/pattern"))
-        .then(response => Promise.all([response.headers.get("Content-Type"), response.arrayBuffer()]))
-        .then(([type, data]) => {
-            return new Promise(function(resolve, reject) {
-                var video = document.createElement("video");
-                video.oncanplaythrough = function() {
-                    resolve(video);
-                };
-                video.onerror = reject;
-                video.src = toDataUrl(type, data);
-            });
+            // Prevent WebKit from garbage collecting event handlers.
+            window._dataVideo = video;
         });
+    });
+
+function makeDataUrlVideo() {
+    return imageBitmapDataUrlVideoPromise;
 }
 
 function makeMakeHTMLImage(src) {
index e973e62..dadff4e 100644 (file)
@@ -2,6 +2,7 @@ Blocked access to external URL http://www1.localhost:8800/images/red.png
 Blocked access to external URL http://www1.localhost:8800/images/red.png
 Blocked access to external URL http://www1.localhost:8800/media/movie_300.mp4
 Blocked access to external URL http://www1.localhost:8800/media/movie_300.mp4
+Blocked access to external URL http://www1.localhost:8800/common/redirect.py?location=http://localhost:8800/media/movie_300.mp4
 Blocked access to external URL http://www1.localhost:8800/images/red.png
 Blocked access to external URL http://www1.localhost:8800/images/red.png
 
@@ -9,6 +10,7 @@ FAIL cross-origin HTMLImageElement promise_test: Unhandled rejection with value:
 FAIL cross-origin SVGImageElement promise_test: Unhandled rejection with value: object "[object Event]"
 FAIL cross-origin HTMLVideoElement promise_test: Unhandled rejection with value: object "[object Event]"
 FAIL redirected to cross-origin HTMLVideoElement promise_test: Unhandled rejection with value: object "[object Event]"
+FAIL redirected to same-origin HTMLVideoElement promise_test: Unhandled rejection with value: object "[object Event]"
 FAIL unclean HTMLCanvasElement promise_test: Unhandled rejection with value: object "[object Event]"
 FAIL unclean ImageBitmap promise_test: Unhandled rejection with value: object "[object Event]"
 
index 3319b21..e78b04d 100644 (file)
@@ -9,6 +9,7 @@ FAIL cross-origin HTMLImageElement promise_test: Unhandled rejection with value:
 FAIL cross-origin SVGImageElement promise_test: Unhandled rejection with value: object "[object Event]"
 FAIL cross-origin HTMLVideoElement promise_test: Unhandled rejection with value: object "[object Event]"
 TIMEOUT redirected to cross-origin HTMLVideoElement Test timed out
+NOTRUN redirected to same-origin HTMLVideoElement 
 NOTRUN unclean HTMLCanvasElement 
 NOTRUN unclean ImageBitmap 
 
index 7c35e9b..8646823 100644 (file)
@@ -32,7 +32,7 @@ PASS createImageBitmap with a an ImageBitmap source and sh set to 0
 FAIL createImageBitmap with a an ImageBitmap source and oversized (unallocatable) crop region assert_unreached: Should have rejected: undefined Reached unreachable code
 PASS createImageBitmap with a a Blob source and sw set to 0 
 PASS createImageBitmap with a a Blob source and sh set to 0 
-FAIL createImageBitmap with a a Blob source and oversized (unallocatable) crop region assert_throws: function "function () { throw e }" threw object "TypeError: createImageBitmap with ArrayBuffer or Blob is not implemented" ("TypeError") expected object "InvalidStateError" ("InvalidStateError")
+FAIL createImageBitmap with a a Blob source and oversized (unallocatable) crop region assert_unreached: Should have rejected: undefined Reached unreachable code
 PASS createImageBitmap with undefined image source. 
 PASS createImageBitmap with null image source. 
 PASS createImageBitmap with CanvasRenderingContext2D image source. 
@@ -43,7 +43,7 @@ PASS createImageBitmap with empty image source.
 PASS createImageBitmap with empty video source. 
 PASS createImageBitmap with an oversized canvas source. 
 FAIL createImageBitmap with an invalid OffscreenCanvas source. assert_throws: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
-FAIL createImageBitmap with an undecodable blob source. assert_throws: function "function () { throw e }" threw object "TypeError: createImageBitmap with ArrayBuffer or Blob is not implemented" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
+PASS createImageBitmap with an undecodable blob source. 
 PASS createImageBitmap with a broken image source. 
 FAIL createImageBitmap with an available but undecodable image source. assert_unreached: Should have rejected: undefined Reached unreachable code
 FAIL createImageBitmap with an available but zero height image source. assert_unreached: Should have rejected: undefined Reached unreachable code
index 3319b21..e78b04d 100644 (file)
@@ -9,6 +9,7 @@ FAIL cross-origin HTMLImageElement promise_test: Unhandled rejection with value:
 FAIL cross-origin SVGImageElement promise_test: Unhandled rejection with value: object "[object Event]"
 FAIL cross-origin HTMLVideoElement promise_test: Unhandled rejection with value: object "[object Event]"
 TIMEOUT redirected to cross-origin HTMLVideoElement Test timed out
+NOTRUN redirected to same-origin HTMLVideoElement 
 NOTRUN unclean HTMLCanvasElement 
 NOTRUN unclean ImageBitmap