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

Side by Side Diff: chrome/browser/plugins/plugin_power_saver_browsertest.cc

Issue 2360643002: Disable PluginPowerSaverBrowserTest.LargeCrossOriginObscured (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 #include <string> 6 #include <string>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 " type='application/x-ppapi-tests' width='100' height='100' " 603 " type='application/x-ppapi-tests' width='100' height='100' "
604 " poster='click_me.png'></object>" 604 " poster='click_me.png'></object>"
605 "<object id='plugin_large' data='http://a.com/fake2.swf' " 605 "<object id='plugin_large' data='http://a.com/fake2.swf' "
606 " type='application/x-ppapi-tests' width='400' height='500'>" 606 " type='application/x-ppapi-tests' width='400' height='500'>"
607 "</object>"); 607 "</object>");
608 VerifyPluginMarkedEssential(GetActiveWebContents(), "plugin_small"); 608 VerifyPluginMarkedEssential(GetActiveWebContents(), "plugin_small");
609 VerifyPluginMarkedEssential(GetActiveWebContents(), "plugin_small_poster"); 609 VerifyPluginMarkedEssential(GetActiveWebContents(), "plugin_small_poster");
610 VerifyPluginMarkedEssential(GetActiveWebContents(), "plugin_large"); 610 VerifyPluginMarkedEssential(GetActiveWebContents(), "plugin_large");
611 } 611 }
612 612
613 IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest, LargeCrossOriginObscured) { 613 // Flaky on almost all platforms: crbug.com/648827.
614 IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest,
615 DISABLED_LargeCrossOriginObscured) {
614 LoadHTML( 616 LoadHTML(
615 "<div id='container' " 617 "<div id='container' "
616 " style='width: 100px; height: 400px; overflow: hidden;'>" 618 " style='width: 100px; height: 400px; overflow: hidden;'>"
617 " <object id='plugin' data='http://otherorigin.com/fake.swf' " 619 " <object id='plugin' data='http://otherorigin.com/fake.swf' "
618 " type='application/x-ppapi-tests' width='400' height='500' " 620 " type='application/x-ppapi-tests' width='400' height='500' "
619 " style='float: right;'>" 621 " style='float: right;'>"
620 " </object>" 622 " </object>"
621 "</div>"); 623 "</div>");
622 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin"); 624 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin");
623 EXPECT_TRUE(VerifySnapshot( 625 EXPECT_TRUE(VerifySnapshot(
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 "<object id='tiny_cross_origin_1' data='http://a.com/fake.swf' " 739 "<object id='tiny_cross_origin_1' data='http://a.com/fake.swf' "
738 " type='application/x-ppapi-tests' width='3' height='3'>" 740 " type='application/x-ppapi-tests' width='3' height='3'>"
739 "</object>" 741 "</object>"
740 "<object id='tiny_cross_origin_2' data='http://a.com/fake.swf' " 742 "<object id='tiny_cross_origin_2' data='http://a.com/fake.swf' "
741 " type='application/x-ppapi-tests' width='1' height='1'>" 743 " type='application/x-ppapi-tests' width='1' height='1'>"
742 "</object>"); 744 "</object>");
743 745
744 VerifyPluginMarkedEssential(GetActiveWebContents(), "tiny_cross_origin_1"); 746 VerifyPluginMarkedEssential(GetActiveWebContents(), "tiny_cross_origin_1");
745 VerifyPluginMarkedEssential(GetActiveWebContents(), "tiny_cross_origin_2"); 747 VerifyPluginMarkedEssential(GetActiveWebContents(), "tiny_cross_origin_2");
746 } 748 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698