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

Side by Side Diff: LayoutTests/dart/security/cross-frame-access.html

Issue 10025040: Use interpolation instead of concatenation. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 8 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 | « LayoutTests/dart/fib.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <script type='application/javascript' src='../../../../../dart/lib/unittest/test _controller.js'></script> 3 <script type='application/javascript' src='../../../../../dart/lib/unittest/test _controller.js'></script>
4 <script type=application/dart> 4 <script type=application/dart>
5 #import('../../../../../dart/lib/unittest/unittest.dart'); 5 #import('../../../../../dart/lib/unittest/unittest.dart');
6 #import('../../../../../dart/lib/unittest/dom_config.dart'); 6 #import('../../../../../dart/lib/unittest/dom_config.dart');
7 #import('dart:dom'); 7 #import('dart:dom');
8 8
9 main() { 9 main() {
10 useDomConfiguration(isLayoutTest: true); 10 useDomConfiguration(isLayoutTest: true);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Not allowed methods. 93 // Not allowed methods.
94 expectThrow(() => location.assign('http://www.webkit.org')); 94 expectThrow(() => location.assign('http://www.webkit.org'));
95 expectThrow(() => location.reload()); 95 expectThrow(() => location.reload());
96 expectThrow(() => location.getParameter('test')); 96 expectThrow(() => location.getParameter('test'));
97 97
98 // Allowed properties. 98 // Allowed properties.
99 window.addEventListener('message', (Event e) { 99 window.addEventListener('message', (Event e) {
100 expect(e.data).equals('navigated'); 100 expect(e.data).equals('navigated');
101 window.setTimeout(callbackDone, 0); 101 window.setTimeout(callbackDone, 0);
102 }); 102 });
103 location.href = 'data:text/html, <script>parent.postMessage("navigated", "*")< ' + '/script>'; 103 location.href = 'data:text/html, <script>parent.postMessage("navigated", "*")< ${"/script>"}';
hausner 2012/04/19 17:19:46 Am I missing something or are you simply interpola
Anton Muhin 2012/04/19 17:20:44 Almost---this code is embedded into HTML, so if I
hausner 2012/04/19 17:22:09 Ah, so I was missing something :) Thanks for the e
104 } 104 }
105 105
106 testIFrameElement(HTMLIFrameElement iframe) { 106 testIFrameElement(HTMLIFrameElement iframe) {
107 expectThrow(() => iframe.contentDocument); 107 expectThrow(() => iframe.contentDocument);
108 expectThrow(() => iframe.getSVGDocument()); 108 expectThrow(() => iframe.getSVGDocument());
109 } 109 }
110 </script> 110 </script>
111 111
112 </body> 112 </body>
113 </html> 113 </html>
OLDNEW
« no previous file with comments | « LayoutTests/dart/fib.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698