| Index: chrome/test/data/extensions/api_test/tabs/basics/crud2.js
|
| diff --git a/chrome/test/data/extensions/api_test/tabs/basics/crud2.js b/chrome/test/data/extensions/api_test/tabs/basics/crud2.js
|
| index e1ae02f7dcc81b883dc1100b1b78ba73e1205128..3e351f6a691ac6fd96ab71f982adf5dc17b271fe 100644
|
| --- a/chrome/test/data/extensions/api_test/tabs/basics/crud2.js
|
| +++ b/chrome/test/data/extensions/api_test/tabs/basics/crud2.js
|
| @@ -5,6 +5,7 @@
|
| var secondWindowId;
|
| var thirdWindowId;
|
| var testTabId;
|
| +var kChromeUINewTabURL = "chrome-search://local-ntp/local-ntp.html";
|
|
|
| function clickLink(id) {
|
| var clickEvent = document.createEvent('MouseEvents');
|
| @@ -15,12 +16,12 @@ function clickLink(id) {
|
| chrome.test.runTests([
|
|
|
| function setupTwoWindows() {
|
| - createWindow(["about:blank", "chrome://newtab/", pageUrl("a")], {},
|
| + createWindow(["about:blank", kChromeUINewTabURL, pageUrl("a")], {},
|
| pass(function(winId, tabIds) {
|
| secondWindowId = winId;
|
| testTabId = tabIds[2];
|
|
|
| - createWindow(["chrome://newtab/", pageUrl("b")], {},
|
| + createWindow([kChromeUINewTabURL, pageUrl("b")], {},
|
| pass(function(winId, tabIds) {
|
| thirdWindowId = winId;
|
| }));
|
| @@ -39,7 +40,7 @@ chrome.test.runTests([
|
| assertEq((i == 0), tabs[i].active && tabs[i].selected);
|
| }
|
| assertEq("about:blank", tabs[0].url);
|
| - assertEq("chrome://newtab/", tabs[1].url);
|
| + assertEq(kChromeUINewTabURL, tabs[1].url);
|
| assertEq(pageUrl("a"), tabs[2].url);
|
| }));
|
|
|
| @@ -50,7 +51,7 @@ chrome.test.runTests([
|
| assertEq(thirdWindowId, tabs[i].windowId);
|
| assertEq(i, tabs[i].index);
|
| }
|
| - assertEq("chrome://newtab/", tabs[0].url);
|
| + assertEq(kChromeUINewTabURL, tabs[0].url);
|
| assertEq(pageUrl("b"), tabs[1].url);
|
| }));
|
| },
|
|
|