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

Side by Side Diff: webkit/data/layout_tests/chrome/http/tests/security/isolatedWorld/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
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/http/tests/security/isolatedWorld/all-window-prototypes.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="console"></div>
5 <script>
6 for (p in window) {
7 var obj = window[p];
8 if (obj)
9 obj.foo = "FAIL: Visible in isolated world.";
10 }
11
12 if (window.layoutTestController) {
13 layoutTestController.dumpAsText();
14 layoutTestController.queueScriptInIsolatedWorld(
15 "for (p in window) {\n" +
16 " var obj = window[p];\n" +
17 " if (obj) {\n" +
18 " var div = document.createElement('div');\n" +
19 " div.innerHTML = p + ': ' + obj.foo;\n" +
20 " document.getElementById('console').appendChild(div);\n" +
21 " }\n" +
22 "}");
23 }
24 </script>
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/http/tests/security/isolatedWorld/all-window-prototypes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698