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

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: review comment 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..43b1aa39695b88efa721f07a2334b2d416ab5031
--- /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>This is resources/window-client-focus.html</div>
+</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