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> |