Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <meta charset="utf-8"> | |
| 3 <title>Test</title> | |
| 4 <script src="../../resources/testharness.js"></script> | |
| 5 <script src="../../resources/testharnessreport.js"></script> | |
| 6 <body onload="on_load()"> | |
| 7 <object id="obj" type="image/svg+xml" data="resources/svg-object-contentWindow.s vg"></object> | |
| 8 <script> | |
| 9 var t1 = async_test("Test content window"); | |
|
Yuki
2016/06/16 12:24:23
Why do you need to test asynchronously?
Shanmuga Pandi
2016/06/17 10:37:31
This test need to be executed as async_test, else
| |
| 10 function on_load () { | |
|
Yuki
2016/06/16 12:24:23
I'd recommend to follow this style guide for JavaS
Shanmuga Pandi
2016/06/17 10:37:31
Done.
| |
| 11 t1.step(function() { | |
| 12 var contentWindow = document.getElementById('obj').contentWindow; | |
| 13 assert_equals(contentWindow.TEST, true, "content window and attributes sho uld be accessible"); | |
|
Yuki
2016/06/16 12:24:23
Better to compare with an unique string so that we
Shanmuga Pandi
2016/06/17 10:37:31
Done.
Yuki
2016/06/20 04:24:15
Seems not done. You're still comparing with |true
| |
| 14 }); | |
| 15 t1.done() | |
| 16 } | |
| 17 </script> | |
| 18 </body> | |
| 19 | |
| OLD | NEW |