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

Unified Diff: chrome/test/data/local_ntp_browsertest.js

Issue 19054012: Reload Local NTP on default search provider change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 5 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
Index: chrome/test/data/local_ntp_browsertest.js
diff --git a/chrome/test/data/local_ntp_browsertest.js b/chrome/test/data/local_ntp_browsertest.js
index f05f870bc3eb24f015db013d682ebeb800a9b9ac..d52b6c41be59702c6b0dc4a457052ee4998a2ebe 100644
--- a/chrome/test/data/local_ntp_browsertest.js
+++ b/chrome/test/data/local_ntp_browsertest.js
@@ -69,7 +69,7 @@ function runTests() {
* Tests that Google NTPs show a fakebox and logo.
*/
function testShowsFakeboxAndLogoIfGoogle() {
- var localNTP = LocalNTP({href: 'isGoogle'});
+ var localNTP = LocalNTP({isGooglePage: true});
localNTP.init();
assert($('fakebox'));
assert($('logo'));
@@ -80,7 +80,7 @@ function testShowsFakeboxAndLogoIfGoogle() {
* Tests that non-Google NTPs do not show a fakebox.
*/
function testDoesNotShowFakeboxIfNotGoogle() {
- var localNTP = LocalNTP({href: ''});
+ var localNTP = LocalNTP({isGooglePage: false});
localNTP.init();
assert(!$('fakebox'));
assert(!$('logo'));
« chrome/browser/ui/search/instant_page.cc ('K') | « chrome/test/data/local_ntp_browsertest.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698