| Index: third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html
|
| diff --git a/third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html b/third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d69502d68a06264a66d658a367020660b9045f9c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html
|
| @@ -0,0 +1,21 @@
|
| +<!doctype html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<div id="d">
|
| +<iframe id="test-plugin-iframe-id" src="resources/x-blink-test-plugin-iframe.html"></iframe>
|
| +</div>
|
| +<script>
|
| +async_test(t => {
|
| + var mimeType;
|
| + document.getElementById("test-plugin-iframe-id").onload = t.step_func(() => {
|
| + mimeType = navigator.mimeTypes["application/x-blink-test-plugin"];
|
| + assert_equals(mimeType.enabledPlugin.name, "Blink Test Plugin");
|
| + document.getElementById("d").innerHTML = "";
|
| + requestAnimationFrame(t.step_func(() => {
|
| + assert_equals(mimeType.enabledPlugin.name, "Blink Test Plugin");
|
| + t.done();
|
| + }));
|
| + });
|
| +}, "Test enabledPlugin after iframe with the plugin is detached.");
|
| +</script>
|
| +
|
|
|