Commit 9d44bd41 authored by Mustaq Ahmed's avatar Mustaq Ahmed Committed by Commit Bot

[UAv2] Add a virtual suite for fast/events/

Bug: 802291
Change-Id: I2b8e7ee5cd61cc31e07bd7d2ed6da69a43743b80
Reviewed-on: https://chromium-review.googlesource.com/1097796Reviewed-by: default avatarNavid Zolghadr <nzolghadr@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567992}
parent 210d3b47
......@@ -32,6 +32,7 @@ fast/harness/results.html [ WontFix ]
[ Win Linux ] editing/input/emacs-ctrl-o.html [ WontFix ]
[ Win Linux ] fast/events/inputevents/inputevent-yank.html [ WontFix ]
[ Win Linux ] virtual/mouseevent_fractional/fast/events/inputevents/inputevent-yank.html [ WontFix ]
[ Win Linux ] virtual/user-activation-v2/fast/events/inputevents/inputevent-yank.html [ WontFix ]
# Chrome Mac doesn't support Ctrl+Up/Down key-bindings.
[ Mac ] editing/input/ctrl-up-down.html [ WontFix ]
......@@ -40,6 +41,7 @@ fast/harness/results.html [ WontFix ]
# this test will always fail.
[ Linux Win ] fast/events/option-tab.html [ WontFix ]
[ Linux Win ] virtual/mouseevent_fractional/fast/events/option-tab.html [ WontFix ]
[ Linux Win ] virtual/user-activation-v2/fast/events/option-tab.html [ WontFix ]
# This test only applies to overlay scrollbar platforms.
[ Win Linux ] fast/dom/partial-layout-overlay-scrollbars.html [ WontFix ]
......@@ -68,16 +70,23 @@ fast/harness/results.html [ WontFix ]
[ Mac ] fast/events/context-menu-key-shift-f10-prevent-default.html [ WontFix ]
[ Mac ] fast/events/contextmenu-follows-focus.html [ WontFix ]
[ Mac ] fast/events/menu-key-context-menu-document.html [ WontFix ]
[ Mac ] fast/events/menu-key-context-menu.html [ WontFix ]
[ Mac ] fast/events/menu-key-context-menu-position.html [ WontFix ]
[ Mac ] fast/events/menu-key-context-menu-reveal-focus.html [ WontFix ]
[ Mac ] fast/events/menu-key-context-menu.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/context-menu-key-shift-f10-modifiers.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/context-menu-key-shift-f10-prevent-default.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/contextmenu-follows-focus.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/menu-key-context-menu-document.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/menu-key-context-menu.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/menu-key-context-menu-position.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/menu-key-context-menu-reveal-focus.html [ WontFix ]
[ Mac ] virtual/mouseevent_fractional/fast/events/menu-key-context-menu.html [ WontFix ]
[ Mac ] virtual/user-activation-v2/fast/events/context-menu-key-shift-f10-modifiers.html [ WontFix ]
[ Mac ] virtual/user-activation-v2/fast/events/context-menu-key-shift-f10-prevent-default.html [ WontFix ]
[ Mac ] virtual/user-activation-v2/fast/events/contextmenu-follows-focus.html [ WontFix ]
[ Mac ] virtual/user-activation-v2/fast/events/menu-key-context-menu-document.html [ WontFix ]
[ Mac ] virtual/user-activation-v2/fast/events/menu-key-context-menu-position.html [ WontFix ]
[ Mac ] virtual/user-activation-v2/fast/events/menu-key-context-menu-reveal-focus.html [ WontFix ]
[ Mac ] virtual/user-activation-v2/fast/events/menu-key-context-menu.html [ WontFix ]
# Link Highlighting is only supported on Windows and Linux
[ Mac ] compositing/gestures [ WontFix ]
......
......@@ -2390,10 +2390,13 @@ crbug.com/613672 [ Mac ] virtual/unified-autoplay/external/wpt/feature-policy/ex
crbug.com/613672 [ Mac ] fast/events/touch/multi-touch-user-gesture.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/mouseevent_fractional/fast/events/touch/multi-touch-user-gesture.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/scroll_customization/fast/events/touch/multi-touch-user-gesture.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/user-activation-v2/fast/events/touch/multi-touch-user-gesture.html [ Skip ]
crbug.com/613672 [ Mac ] fast/events/pointerevents/multi-pointer-event-in-slop-region.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/mouseevent_fractional/fast/events/pointerevents/multi-pointer-event-in-slop-region.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/user-activation-v2/fast/events/pointerevents/multi-pointer-event-in-slop-region.html [ Skip ]
crbug.com/613672 [ Mac ] fast/events/pointerevents/pointer-event-in-slop-region.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/mouseevent_fractional/fast/events/pointerevents/pointer-event-in-slop-region.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/user-activation-v2/fast/events/pointerevents/pointer-event-in-slop-region.html [ Skip ]
crbug.com/613672 [ Mac ] virtual/threaded/fast/events/pointerevents/pinch/pointerevent_touch-action-pinch_zoom_touch.html [ Skip ]
crbug.com/613672 [ Mac ] external/wpt/pointerevents/compat/pointerevent_touch-action_two-finger_interaction-manual.html [ Skip ]
# In addition to having no support on Mac, the following test times out
......@@ -2629,12 +2632,16 @@ crbug.com/564109 [ Win ] http/tests/webfont/font-display-intervention.html [ Pa
crbug.com/399951 http/tests/mime/javascript-mimetype-usecounters.html [ Pass Failure ]
crbug.com/663847 [ Linux ] fast/events/context-no-deselect.html [ Failure Pass ]
crbug.com/594672 fast/events/iframe-object-onload.html [ Failure Pass ]
crbug.com/594672 fast/events/scale-and-scroll-iframe-body.html [ Failure Pass ]
crbug.com/594672 fast/events/updateLayoutForHitTest.html [ Failure Pass ]
crbug.com/594672 virtual/mouseevent_fractional/fast/events/iframe-object-onload.html [ Failure Pass ]
crbug.com/594672 virtual/mouseevent_fractional/fast/events/scale-and-scroll-iframe-body.html [ Failure Pass ]
crbug.com/594672 virtual/mouseevent_fractional/fast/events/updateLayoutForHitTest.html [ Failure Pass ]
crbug.com/594672 virtual/user-activation-v2/fast/events/iframe-object-onload.html [ Failure Pass ]
crbug.com/594672 virtual/user-activation-v2/fast/events/scale-and-scroll-iframe-body.html [ Failure Pass ]
crbug.com/594672 virtual/user-activation-v2/fast/events/updateLayoutForHitTest.html [ Failure Pass ]
crbug.com/453002 [ Win ] fast/text/international/text-combine-image-test.html [ Failure Pass ]
crbug.com/453002 [ Win ] fast/text/international/vertical-text-glyph-test.html [ Failure Pass ]
......@@ -3961,6 +3968,7 @@ crbug.com/724027 http/tests/security/contentSecurityPolicy/source-list-parsing-0
# Sheriff failures 2017-05-16
crbug.com/722212 fast/events/pointerevents/mouse-pointer-event-properties.html [ Failure Timeout Pass ]
crbug.com/722212 virtual/mouseevent_fractional/fast/events/pointerevents/mouse-pointer-event-properties.html [ Failure Timeout Pass ]
crbug.com/722212 virtual/user-activation-v2/fast/events/pointerevents/mouse-pointer-event-properties.html [ Failure Timeout Pass ]
# Crashes on win
crbug.com/722943 media/audio-repaint.html [ Skip ]
crbug.com/722943 virtual/video-surface-layer/media/audio-repaint.html [ Skip ]
......
......@@ -675,6 +675,11 @@
"args": ["--enable-features=UseSurfaceLayerForVideo",
"--enable-display-compositor-pixel-dump"]
},
{
"prefix": "user-activation-v2",
"base": "fast/events",
"args": ["--enable-features=UserActivationV2"]
},
{
"prefix": "user-activation-v2",
"base": "user-activation-v2",
......
......@@ -3,27 +3,32 @@
<script src="../../resources/js-test.js"></script>
<script>
var newWindow;
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.waitUntilDone();
testRunner.setPopupBlockingEnabled(true);
}
function clickHandler() {
setTimeout(function() {
setTimeout(function() {
newWindow = window.open("about:blank");
self.focus();
debug("Test calling window.open() in a nested call to setTimeout(). A popup should not be allowed.")
shouldBeNull("newWindow");
if (!internals.runtimeFlags.userActivationV2Enabled) {
debug("Test calling window.open() in a nested call to setTimeout(). A popup should not be allowed.")
shouldBeNull("newWindow");
} else {
debug("Test calling window.open() in a nested call to setTimeout(). A popup should be allowed.")
shouldBeNonNull("newWindow");
}
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}, 300);
}
function clickButton() {
var button = document.getElementById("test");
var buttonX = button.offsetLeft + button.offsetWidth / 2;
......@@ -33,7 +38,7 @@
eventSender.mouseDown();
eventSender.mouseUp();
}
}
}
</script>
</head>
<body onload="clickButton()">
......
......@@ -3,15 +3,21 @@
<script src="../../resources/js-test.js"></script>
<script>
var newWindow;
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.waitUntilDone();
testRunner.setPopupBlockingEnabled(true);
}
function clickHandler() {
if (internals.runtimeFlags.userActivationV2Enabled) {
if (window.testRunner)
testRunner.notifyDone();
return;
}
setTimeout(function() {
newWindow = window.open("about:blank");
self.focus();
......@@ -24,7 +30,7 @@
if (window.eventSender)
eventSender.leapForward(1001);
}
function clickButton() {
var button = document.getElementById("test");
var buttonX = button.offsetLeft + button.offsetWidth / 2;
......@@ -34,7 +40,7 @@
eventSender.mouseDown();
eventSender.mouseUp();
}
}
}
</script>
</head>
<body onload="clickButton()">
......
......@@ -9,15 +9,21 @@
if (!winToClose.closed)
setTimeout(doneHandler, 1);
else if (window.testRunner)
testRunner.notifyDone();
testRunner.notifyDone();
}
}
function handleClick(event) {
var newWin = window.open('resources/window-opened.html', 'badName', 'width=100, height=100');
if (newWin) {
parent.log("Window was opened! Test succeeded!");
closeWin(newWin);
if (!internals.runtimeFlags.userActivationV2Enabled) {
if (newWin) {
parent.log("Window was opened! Test succeeded!");
closeWin(newWin);
}
} else {
parent.log("Window was not opened! Test succeeded!");
if (window.testRunner)
testRunner.notifyDone();
}
event.preventDefault();
......
# This suite runs tests with --enable-features=UserActivationV2.
# See http://bit.ly/2E9E3IA
This tests that window.open works across frames.
To run manually click the link below.
GreenBox or Success page.
Window was not opened! Test succeeded!
--------
Frame: 'otherFrame'
--------
This frame should handle the click event on the anchor element in the other window.
Click Here
PASS successfullyParsed is true
TEST COMPLETE
Test calling window.open() in a nested call to setTimeout(). A popup should be allowed.
PASS newWindow is non-null.
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