Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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> |
| OLD | NEW |