Commit a524ccc7 authored by Mustaq Ahmed's avatar Mustaq Ahmed Committed by Commit Bot

Tweaked two layout tests that had UAv2 specific conditions.

Bug: 802291
Change-Id: Ie754a7a47ffb2c45ddee3d504fc8159a7a6ec783
Reviewed-on: https://chromium-review.googlesource.com/c/1347509Reviewed-by: default avatarNavid Zolghadr <nzolghadr@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610420}
parent 82da0acd
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
} }
function clickHandler() { function clickHandler() {
if (internals.runtimeFlags.userActivationV2Enabled) {
if (window.testRunner)
testRunner.notifyDone();
return;
}
setTimeout(function() { setTimeout(function() {
newWindow = window.open("about:blank"); newWindow = window.open("about:blank");
self.focus(); self.focus();
......
...@@ -21,9 +21,11 @@ ...@@ -21,9 +21,11 @@
closeWin(newWin); closeWin(newWin);
} }
} else { } else {
parent.log("Window was not opened! Test succeeded!"); if (!newWin) {
if (window.testRunner) parent.log("Window was not opened! Test succeeded!");
testRunner.notifyDone(); if (window.testRunner)
testRunner.notifyDone();
}
} }
event.preventDefault(); event.preventDefault();
......
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