Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / chromium / resources / windowclient-focus.html
blob43b1aa39695b88efa721f07a2334b2d416ab5031
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Resource for WindowClient.focus() tests</title>
5 </head>
6 <body>
7 <div>This is resources/window-client-focus.html</div>
8 </body>
9 <script>
10 function insertFrame(name) {
11 var frame = document.createElement('iframe');
12 frame.src = 'windowclient-focus.html?' + name;
13 document.body.appendChild(frame);
16 if (location.search == "") {
17 // If this window is the top level window, we should insert two iframes.
18 // They shouldn't create new iframes.
19 insertFrame("1");
20 insertFrame("2");
22 </script>
23 </html>