Chromium Code Reviews| 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> |