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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.html

Issue 866043005: [ServiceWorker] Tests for WindowClient.focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_openwindow_tests
Patch Set: Created 5 years, 10 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/http/tests/serviceworker/chromium/resources/windowclient-focus.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.html b/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.html
new file mode 100644
index 0000000000000000000000000000000000000000..a97f5fae91e24af2dfcf930be76a91ff0c9c47b7
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Resource for WindowClient.focus() tests</title>
+</head>
+<body>
+ <div>Foo</div>
Michael van Ouwerkerk 2015/02/18 10:55:47 Omit this?
mlamouri (slow - plz ping) 2015/02/18 11:34:55 It's good for local debugging. You don't get a bla
mlamouri (slow - plz ping) 2015/02/18 11:34:55 It's good for local debugging. You don't get a bla
Michael van Ouwerkerk 2015/02/18 12:39:03 Ok, so then make it say something meaningful. In i
+</body>
+<script>
+ function insertFrame(name) {
+ var frame = document.createElement('iframe');
+ frame.src = 'windowclient-focus.html?' + name;
+ document.body.appendChild(frame);
+ }
+
+ if (location.search == "") {
+ // If this window is the top level window, we should insert two iframes.
+ // They shouldn't create new iframes.
+ insertFrame("1");
+ insertFrame("2");
+ }
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698