| 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 62a673b4b25be06fe337cd98d017cd5052256791..57f5b7ba72a18ae2bfdfd256f0f63378ecafad6d 100644
|
| --- a/chrome/test/data/local_ntp_browsertest.js
|
| +++ b/chrome/test/data/local_ntp_browsertest.js
|
| @@ -87,57 +87,3 @@ function testDoesNotShowFakeboxIfNotGoogle() {
|
| assert(!$('fakebox'));
|
| assert(!$('logo'));
|
| }
|
| -
|
| -
|
| -/**
|
| - * Tests that clicking on a Most Visited link calls navigateContentWindow.
|
| - */
|
| -function testMostVisitedLinkCallsNavigateContentWindow() {
|
| - var ntpHandle = chrome.embeddedSearch.newTabPage;
|
| - var originalNavigateContentWindow = ntpHandle.navigateContentWindow;
|
| -
|
| - var navigateContentWindowCalls = 0;
|
| - ntpHandle.navigateContentWindow = function() {
|
| - navigateContentWindowCalls++;
|
| - }
|
| -
|
| - // Most Visited links have an rid (restricted id).
|
| - var params = { 'rid' : 1 };
|
| - var href = 'file:///some/local/file';
|
| - var title = 'Title';
|
| - var text = 'text';
|
| - var provider = 'foobar';
|
| - var link = createMostVisitedLink(params, href, title, text, provider);
|
| -
|
| - link.click();
|
| -
|
| - ntpHandle.navigateContentWindow = originalNavigateContentWindow;
|
| - assert(navigateContentWindowCalls > 0);
|
| -}
|
| -
|
| -
|
| -/**
|
| - * Tests that clicking on a Most Likely link does not call
|
| - * navigateContentWindow (it's a regular link).
|
| - */
|
| -function testMostLikelyLinkDoesNotCallNavigateContentWindow() {
|
| - var ntpHandle = chrome.embeddedSearch.newTabPage;
|
| - var originalNavigateContentWindow = ntpHandle.navigateContentWindow;
|
| -
|
| - var navigateContentWindowCalls = 0;
|
| - ntpHandle.navigateContentWindow = function() {
|
| - navigateContentWindowCalls++;
|
| - }
|
| -
|
| - var params = {};
|
| - var href = 'https://www.site.com';
|
| - var title = 'Title';
|
| - var text = 'text';
|
| - var provider = 'foobar';
|
| - var link = createMostVisitedLink(params, href, title, text, provider);
|
| -
|
| - link.click();
|
| -
|
| - ntpHandle.navigateContentWindow = originalNavigateContentWindow;
|
| - assert(navigateContentWindowCalls == 0);
|
| -}
|
|
|