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

Unified Diff: chrome/test/data/prerender/prerender_plugin_click_to_play.html

Issue 829113004: Plugin Power Saver: Add back 'Click to play' option as 4th for plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/prerender/prerender_plugin_click_to_play.html
diff --git a/chrome/test/data/prerender/prerender_plugin_power_saver.html b/chrome/test/data/prerender/prerender_plugin_click_to_play.html
similarity index 57%
copy from chrome/test/data/prerender/prerender_plugin_power_saver.html
copy to chrome/test/data/prerender/prerender_plugin_click_to_play.html
index fab134206c673034ffaf475dad2cfe2fddbfa384..c07afa5392d84f0d6c2b8b60069ac32c2a31a766 100644
--- a/chrome/test/data/prerender/prerender_plugin_power_saver.html
+++ b/chrome/test/data/prerender/prerender_plugin_click_to_play.html
@@ -1,10 +1,10 @@
<html>
<!--
-This test checks to make sure plugins aren't loaded when a page is prerendered,
-but are loaded once the page is displayed and Plugin Power Saver is enabled.
+This test checks to make sure plugins aren't loaded when prerendered page
+is displayed and click-to-play is enabled.
-->
<head>
-<title>Prerender Plugin Power Saver</title>
+<title>Prerender click-to-play</title>
<script>
// Make sure plugin was not loaded while prerendering.
@@ -15,10 +15,12 @@ function DidPrerenderPass() {
return plugin.getURL == undefined;
}
-// Make sure plugin loads once the page is displayed.
+// Make sure plugin still hasn't loaded once the page is displayed.
function DidDisplayPass() {
+ // |plugin| should be the blocked plugin placeholder, rather than the
+ // test plugin.
var plugin = window.document['plugin'];
- return plugin.getURL != undefined;
+ return plugin.getURL == undefined;
}
</script>
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698