Chromium Code Reviews| Index: content/test/data/browser_plugin_embedder.html |
| diff --git a/content/test/data/browser_plugin_embedder.html b/content/test/data/browser_plugin_embedder.html |
| index dc2e780d72bebc3e23816992d104a631272d9307..6c4263e06a278405841c77044b543cf66cd235fc 100644 |
| --- a/content/test/data/browser_plugin_embedder.html |
| +++ b/content/test/data/browser_plugin_embedder.html |
| @@ -1,6 +1,14 @@ |
| <script type="text/javascript"> |
| +function loadAbort(evt) { |
| + document.title = 'abort'; |
|
Charlie Reis
2012/10/04 02:57:48
Maybe we should set it to evt.type, so we can test
Fady Samuel
2012/10/04 15:04:51
Done.
|
| +} |
| +function loadStart(evt) { |
| + document.title = evt.url; |
| +} |
| function SetSrc(src) { |
| var plugin = document.getElementById('plugin'); |
| + plugin.addEventListener('loadStart', loadStart); |
| + plugin.addEventListener('loadAbort', loadAbort); |
|
Charlie Reis
2012/10/04 02:57:48
This will cause these listeners to be added multip
Fady Samuel
2012/10/04 15:04:51
Done.
|
| plugin.src = src; |
| } |
| function SetSize(w, h) { |
| @@ -23,8 +31,7 @@ function Go(relativeIndex) { |
| function SetTitle(str) { |
| document.title = str; |
| } |
| - |
| -window.document.title = 'embedder'; |
| +document.title = 'embedder'; |
| </script> |
| <object id="plugin" |