| Index: third_party/WebKit/LayoutTests/fast/replaced/invalid-object-with-fallback.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/replaced/invalid-object-with-fallback.html b/third_party/WebKit/LayoutTests/fast/replaced/invalid-object-with-fallback.html
|
| index b7c3c5cc7f6c331774ac9cad267553fc75dd2ddf..ab1ab1c51c4bc75922e99df532df80f766c2f708 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/replaced/invalid-object-with-fallback.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/replaced/invalid-object-with-fallback.html
|
| @@ -1,8 +1,10 @@
|
| <html>
|
| <head>
|
| <script>
|
| - if (window.testRunner)
|
| + if (window.testRunner) {
|
| testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
|
|
| function debug(str) {
|
| document.getElementById('console').innerHTML += str + "<br>";
|
| @@ -12,17 +14,15 @@
|
| <body>
|
| <object>
|
| <p>This test verifies that an <embed> tag is rendered along with other fallback content when an <object> fails to load. On success, you should see this text, followed by 'PASS'.</p>
|
| - <embed name="plugin" type="application/x-webkit-test-netscape">
|
| + <embed name="plugin" type="application/x-blink-test-plugin">
|
| </object>
|
| <div id="console"></div>
|
| <script>
|
| - if (window.internals)
|
| - internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
|
| - var plugin = document.plugin;
|
| - if (plugin && plugin.getURL)
|
| - debug("PASS");
|
| - else
|
| - debug("FAIL");
|
| + document.querySelector("embed").addEventListener("message", function (message) {
|
| + debug("PASS");
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + });
|
| </script>
|
| </body>
|
| </html>
|
|
|