Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: LayoutTests/platform/chromium/fast/events/popup-allowed-from-gesture-only-once-iframes.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/platform/chromium/fast/events/popup-allowed-from-gesture-only-once-iframes.html
diff --git a/LayoutTests/platform/chromium/fast/events/popup-allowed-from-gesture-only-once-iframes.html b/LayoutTests/platform/chromium/fast/events/popup-allowed-from-gesture-only-once-iframes.html
deleted file mode 100644
index 37471385171d143b36f5564f6153bffcf2dee136..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/fast/events/popup-allowed-from-gesture-only-once-iframes.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
- <body>
- <p>
- Test that we don't create a new user gesture indicator every time
- an event is passed to an iframe.
- </p>
- <p>
- To run, click on the iframe. The test passes, if only one window
- is opened in response to the click.
- </p>
- <iframe id="iframe" src="about:blank"></iframe>
- <div id="console"></div>
- <script>
- var iframe = document.getElementById("iframe");
- iframe.contentDocument.body.onclick = function() {
- window.open("about:blank", "window1");
- window.open("about:blank", "window2");
- if (window.testRunner) {
- if (testRunner.windowCount() == windowCount + 1)
- document.getElementById("console").innerText = "PASSED";
- else
- document.getElementById("console").innerText = "FAILED";
- testRunner.notifyDone();
- }
- }
-
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
- testRunner.setPopupBlockingEnabled(true);
- testRunner.setCloseRemainingWindowsWhenComplete(true);
- testRunner.waitUntilDone();
- windowCount = testRunner.windowCount();
-
- var frame = document.getElementById("iframe");
-
- if (window.eventSender) {
- eventSender.mouseMoveTo(frame.offsetLeft + frame.offsetWidth / 2, frame.offsetTop + frame.offsetHeight / 2);
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
- }
- </script>
- </body>
- </html>

Powered by Google App Engine
This is Rietveld 408576698