Chromium Code Reviews| 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..57f5b7ba72a18ae2bfdfd256f0f63378ecafad6d 100644 |
| --- a/chrome/test/data/local_ntp_browsertest.js |
| +++ b/chrome/test/data/local_ntp_browsertest.js |
| @@ -69,7 +69,8 @@ function runTests() { |
| * Tests that Google NTPs show a fakebox and logo. |
| */ |
| function testShowsFakeboxAndLogoIfGoogle() { |
| - var localNTP = LocalNTP({href: 'isGoogle'}); |
| + var localNTP = LocalNTP(); |
| + configData.isGooglePage = true; |
|
samarth
2013/07/17 16:39:45
Nice.
|
| localNTP.init(); |
| assert($('fakebox')); |
| assert($('logo')); |
| @@ -80,7 +81,8 @@ function testShowsFakeboxAndLogoIfGoogle() { |
| * Tests that non-Google NTPs do not show a fakebox. |
| */ |
| function testDoesNotShowFakeboxIfNotGoogle() { |
| - var localNTP = LocalNTP({href: ''}); |
| + var localNTP = LocalNTP(); |
| + configData.isGooglePage = false; |
| localNTP.init(); |
| assert(!$('fakebox')); |
| assert(!$('logo')); |