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

Side by Side Diff: webkit/data/layout_tests/chrome/http/tests/security/isolatedWorld/iframe-all-window-properties.html

Issue 149193: Add some test for isolated worlds. These tests don't run properly at the mom... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="console"></div>
5 <iframe src="about:blank"></iframe>
6 <script>
7 var wnd = frames[0];
8 for (p in wnd) {
9 var obj = wnd[p];
10 if (obj)
11 obj.foo = "FAIL: Visible in isolated world.";
12 }
13
14 if (window.layoutTestController) {
15 layoutTestController.dumpAsText();
16 layoutTestController.queueScriptInIsolatedWorld(
17 "var wnd = frames[0];\n" +
18 "for (p in wnd) {\n" +
19 " var obj = wnd[p];\n" +
20 " if (obj) {\n" +
21 " var div = document.createElement('div');\n" +
22 " div.innerHTML = p + ': ' + obj.foo;\n" +
23 " document.getElementById('console').appendChild(div);\n" +
24 " }\n" +
25 "}");
26 }
27 </script>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698