Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <script src="../resources/testharness.js"></script> | |
| 3 <script src="../resources/testharnessreport.js"></script> | |
| 4 <div id='d'> | |
| 5 <iframe id='test-plugin-iframe-id' src="resources/x-blink-test-plugin-iframe.htm l"></iframe> | |
|
dominicc (has gone to gerrit)
2016/08/30 02:46:28
Be consistent about types of quotes for attributes
| |
| 6 </div> | |
| 7 <script> | |
| 8 async_test(function(t) | |
|
dominicc (has gone to gerrit)
2016/08/30 02:46:28
Consider using arrow functions; they're slightly m
| |
| 9 { | |
| 10 var mimeType; | |
| 11 document.getElementById('test-plugin-iframe-id').onload = t.step_func(functi on() | |
| 12 { | |
|
dominicc (has gone to gerrit)
2016/08/30 02:46:28
Put { on the previous line. A bit of Blink C++ sty
| |
| 13 mimeType = navigator.mimeTypes['application/x-blink-test-plugin']; | |
| 14 assert_equals(mimeType.enabledPlugin.name, 'Blink Test Plugin'); | |
| 15 document.getElementById("d").innerHTML = ""; | |
|
dominicc (has gone to gerrit)
2016/08/30 02:46:28
Be consistent with single and double quotes for st
| |
| 16 setTimeout(t.step_func(function() { | |
| 17 assert_equals(mimeType.enabledPlugin.name, 'Blink Test Plugin'); | |
| 18 t.done(); | |
| 19 }, 50)); | |
|
dominicc (has gone to gerrit)
2016/08/30 02:46:28
Is there an event you can listen for, instead of a
Anton Obzhirov
2016/09/01 10:46:37
Yes, it is just to get out of this loop iteration.
| |
| 20 }); | |
| 21 }, "Test enabledPlugin after iframe with the plugin is detached."); | |
| 22 </script> | |
| 23 | |
| OLD | NEW |