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

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html

Issue 2157883002: Cache the mimeTypes and plugins DOM objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added new layout test, both tests use testharness.js. Created 4 years, 4 months 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698