Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: third_party/WebKit/LayoutTests/fast/replaced/invalid-object-with-fallback.html

Issue 1480303002: Implement a basic PPAPI plugin for Blink layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trim comment Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 &lt;embed&gt; tag is rendered along with other fallback content when an &lt;object&gt; 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) {
dcheng 2015/12/01 01:03:30 Is there a better way to tell if a PPAPI plugin lo
+ debug("PASS");
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698