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

Side by Side Diff: chrome/test/data/prerender/prerender_plugin_delay_load.html

Issue 2342893003: Plugin Power Saver Tiny: Fix Field Trial testing config (Closed)
Patch Set: Fix prerender tests Created 4 years, 3 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
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test checks to make sure plugins aren't loaded when a page is prerendered, 3 This test checks to make sure plugins aren't loaded when a page is prerendered,
4 but are loaded once the page is displayed. 4 but are loaded once the page is displayed.
5 5
6 This test relies on the Pepper plugin (but not the placeholder) implementing 6 This test relies on the Pepper plugin (but not the placeholder) implementing
7 the postMessage() function on the plugin object. 7 the postMessage() function on the plugin object.
8 --> 8 -->
9 <head> 9 <head>
10 <title>Prerender Plugin Delay Loading</title> 10 <title>Prerender Plugin Delay Loading</title>
11 11
12 <script> 12 <script>
13 // Make sure plugin was not loaded while prerendering. 13 // Make sure plugin was not loaded while prerendering.
14 function DidPrerenderPass() { 14 function DidPrerenderPass() {
15 // |plugin| should be the blocked plugin placeholder, rather than the 15 // |plugin| should be the blocked plugin placeholder, rather than the
16 // test plugin. 16 // test plugin.
17 var plugin = window.document['plugin']; 17 var plugin = window.document['plugin'];
18 return plugin.postMessage == undefined; 18 return plugin.postMessage == undefined;
19 } 19 }
20 20
21 // Make sure plugin loads once the page is displayed. 21 // Make sure plugin loads once the page is displayed.
22 function DidDisplayPass() { 22 function DidDisplayPass() {
23 var plugin = window.document['plugin']; 23 var plugin = window.document['plugin'];
24 return plugin.postMessage != undefined; 24 return plugin.postMessage != undefined;
25 } 25 }
26 </script> 26 </script>
27 27
28 </head> 28 </head>
29 <body> 29 <body>
30 <embed name="plugin" type="application/x-ppapi-tests"></embed> 30 <!-- Specifically define the data attribute to be same-origin. Otherwise,
31 Plugin Power Saver will further defer the loading of the plugin. -->
32 <object name='plugin' data='fake.swf' type='application/x-ppapi-tests'>
33 </object>
31 </body> 34 </body>
32 </html> 35 </html>
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_power_saver_browsertest.cc ('k') | testing/variations/fieldtrial_testing_config_chromeos.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698