Commit 11d4958c authored by Mustaq Ahmed's avatar Mustaq Ahmed Committed by Commit Bot

UAv2: Add a virtual suite for fast/dom/Window

Also fix window-postMessage-user-gesture.html expectation for UAv2.

Bug: 805015
Change-Id: I669a5b01c3c0862a511978a9ec8d56a813ccfa77
Reviewed-on: https://chromium-review.googlesource.com/1104702
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Reviewed-by: default avatarMustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568455}
parent d22b1e3b
...@@ -1999,6 +1999,7 @@ crbug.com/636207 [ Win Debug ] fast/dom/HTMLImageElement/image-srcset-w-onerror. ...@@ -1999,6 +1999,7 @@ crbug.com/636207 [ Win Debug ] fast/dom/HTMLImageElement/image-srcset-w-onerror.
crbug.com/569139 fast/js/string-replace-2.html [ Failure ] crbug.com/569139 fast/js/string-replace-2.html [ Failure ]
crbug.com/569139 fast/js/regexp-caching.html [ Failure ] crbug.com/569139 fast/js/regexp-caching.html [ Failure ]
crbug.com/597221 fast/dom/Window/window-postmessage-clone-deep-array.html [ Failure ] crbug.com/597221 fast/dom/Window/window-postmessage-clone-deep-array.html [ Failure ]
crbug.com/597221 virtual/user-activation-v2/fast/dom/Window/window-postmessage-clone-deep-array.html [ Failure ]
crbug.com/498539 http/tests/devtools/tracing/timeline-misc/timeline-bound-function.js [ Pass Failure ] crbug.com/498539 http/tests/devtools/tracing/timeline-misc/timeline-bound-function.js [ Pass Failure ]
crbug.com/498539 virtual/threaded/http/tests/devtools/tracing/timeline-misc/timeline-bound-function.js [ Pass Failure ] crbug.com/498539 virtual/threaded/http/tests/devtools/tracing/timeline-misc/timeline-bound-function.js [ Pass Failure ]
...@@ -2051,6 +2052,7 @@ crbug.com/688613 virtual/feature-policy-permissions/external/wpt/mediacapture-st ...@@ -2051,6 +2052,7 @@ crbug.com/688613 virtual/feature-policy-permissions/external/wpt/mediacapture-st
crbug.com/542660 fast/css/absolute-inline-alignment-2.html [ Failure ] crbug.com/542660 fast/css/absolute-inline-alignment-2.html [ Failure ]
crbug.com/766135 fast/dom/Window/redirect-with-timer.html [ Timeout Pass ] crbug.com/766135 fast/dom/Window/redirect-with-timer.html [ Timeout Pass ]
crbug.com/766135 virtual/user-activation-v2/fast/dom/Window/redirect-with-timer.html [ Timeout Pass ]
# Ref tests that needs investigation. # Ref tests that needs investigation.
crbug.com/404597 [ Mac ] fast/css3-text/css3-text-justify/text-justify-crash.html [ Failure ] crbug.com/404597 [ Mac ] fast/css3-text/css3-text-justify/text-justify-crash.html [ Failure ]
...@@ -4035,6 +4037,7 @@ crbug.com/734873 [ Linux ] fast/backgrounds/size/contain-and-cover.html [ Pass F ...@@ -4035,6 +4037,7 @@ crbug.com/734873 [ Linux ] fast/backgrounds/size/contain-and-cover.html [ Pass F
crbug.com/731509 [ Win ] css3/viewport-percentage-lengths/viewport-percentage-lengths-resize.html [ Failure Pass Timeout ] crbug.com/731509 [ Win ] css3/viewport-percentage-lengths/viewport-percentage-lengths-resize.html [ Failure Pass Timeout ]
crbug.com/731535 [ Mac Win7 ] fast/dom/Window/window-resize-contents.html [ Failure Pass ] crbug.com/731535 [ Mac Win7 ] fast/dom/Window/window-resize-contents.html [ Failure Pass ]
crbug.com/731535 [ Mac Win7 ] virtual/user-activation-v2/fast/dom/Window/window-resize-contents.html [ Failure Pass ]
crbug.com/732103 [ Mac ] http/tests/shapedetection/shapedetection-cross-origin.html [ Timeout Pass ] crbug.com/732103 [ Mac ] http/tests/shapedetection/shapedetection-cross-origin.html [ Timeout Pass ]
...@@ -4522,6 +4525,7 @@ crbug.com/806249 virtual/video-surface-layer/media/picture-in-picture/controls/p ...@@ -4522,6 +4525,7 @@ crbug.com/806249 virtual/video-surface-layer/media/picture-in-picture/controls/p
crbug.com/816475 [ Win7 Linux ] external/wpt/webrtc/RTCDTMFSender-ontonechange.https.html [ Failure Pass ] crbug.com/816475 [ Win7 Linux ] external/wpt/webrtc/RTCDTMFSender-ontonechange.https.html [ Failure Pass ]
crbug.com/816914 [ Mac ] fast/canvas/canvas-drawImage-live-video.html [ Failure Pass ] crbug.com/816914 [ Mac ] fast/canvas/canvas-drawImage-live-video.html [ Failure Pass ]
crbug.com/816766 [ Mac ] fast/dom/Window/window-focus-self.html [ Failure Pass ] crbug.com/816766 [ Mac ] fast/dom/Window/window-focus-self.html [ Failure Pass ]
crbug.com/816766 [ Mac ] virtual/user-activation-v2/fast/dom/Window/window-focus-self.html [ Failure Pass ]
crbug.com/817167 http/tests/devtools/oopif/oopif-cookies-refresh.js [ Failure Timeout Pass ] crbug.com/817167 http/tests/devtools/oopif/oopif-cookies-refresh.js [ Failure Timeout Pass ]
# Sheriff 2018-03-02 # Sheriff 2018-03-02
......
...@@ -675,6 +675,11 @@ ...@@ -675,6 +675,11 @@
"args": ["--enable-features=UseSurfaceLayerForVideo", "args": ["--enable-features=UseSurfaceLayerForVideo",
"--enable-display-compositor-pixel-dump"] "--enable-display-compositor-pixel-dump"]
}, },
{
"prefix": "user-activation-v2",
"base": "fast/dom/Window",
"args": ["--enable-features=UserActivationV2"]
},
{ {
"prefix": "user-activation-v2", "prefix": "user-activation-v2",
"base": "fast/events", "base": "fast/events",
......
...@@ -2,8 +2,8 @@ Test that user gesture is kept when postMessage() to self or across frames. ...@@ -2,8 +2,8 @@ Test that user gesture is kept when postMessage() to self or across frames.
Click me Click me
PASS Stack postMessages on self window and the user gesture is only consumed once PASS Stack postMessages on self window and the user gesture is only consumed once
PASS Bounce postMessages between self and frame window and the user gesture is only consumed once in self window PASS Bounce postMessages between self and frame window and the user gesture is consumed only once in self window
PASS Bounce postMessages between self and frame window and the user gesture is only consumed once in frame PASS Bounce postMessages between self and frame window and the user gesture is consumed only once in frame
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -56,14 +56,20 @@ function onMessageFrame(event) { ...@@ -56,14 +56,20 @@ function onMessageFrame(event) {
if (msg.count < msg.bounceTotal) if (msg.count < msg.bounceTotal)
document.getElementById("subframe").contentWindow.postMessage(msg, "*"); document.getElementById("subframe").contentWindow.postMessage(msg, "*");
else { else {
if (msg.consumeCount == 1) var outputStr = "Bounce postMessages between self and frame window" +
testPassed("Bounce postMessages between self and frame window and" + " and the user gesture is consumed " +
" the user gesture is only consumed once " + (msg.consumeCount == 1? "only once " : msg.consumeCount + " times ") +
(consumeInFrame ? "in frame" : "in self window")); (consumeInFrame ? "in frame" : "in self window");
var consumeCountIsCorrect = (msg.consumeCount == 1);
if (internals.runtimeFlags.userActivationV2Enabled)
consumeCountIsCorrect = (!consumeInFrame && msg.consumeCount == 1) ||
(consumeInFrame && msg.consumeCount == 0);
if (consumeCountIsCorrect)
testPassed(outputStr);
else else
testFailed("Bounce postMessages between self and frame window and" + testFailed(outputStr);
" the user gesture is consumed " + msg.consumeCount + " times "+
(consumeInFrame ? "in frame" : "in self window"));
if (!consumeInFrame) { if (!consumeInFrame) {
consumeInFrame = true; consumeInFrame = true;
......
# This suite runs tests with --enable-features=UserActivationV2.
# See http://bit.ly/2E9E3IA
Test that user gesture is kept when postMessage() to self or across frames.
Click me
PASS Stack postMessages on self window and the user gesture is only consumed once
PASS Bounce postMessages between self and frame window and the user gesture is consumed only once in self window
PASS Bounce postMessages between self and frame window and the user gesture is consumed 0 times in frame
PASS successfullyParsed is true
TEST COMPLETE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment