diff --git a/platform/commonUI/browse/bundle.json b/platform/commonUI/browse/bundle.json index 08b8dd08c8..babf873aae 100644 --- a/platform/commonUI/browse/bundle.json +++ b/platform/commonUI/browse/bundle.json @@ -92,8 +92,8 @@ }, { "key": "window", - "implementation": "windowing/NewWindowAction.js", - "description": "Open this object in a new window", + "implementation": "windowing/NewTabAction.js", + "description": "Open this object in a new tab", "category": "view-control", "depends": [ "$window" ], "group": "windowing", diff --git a/platform/commonUI/browse/src/windowing/NewWindowAction.js b/platform/commonUI/browse/src/windowing/NewTabAction.js similarity index 96% rename from platform/commonUI/browse/src/windowing/NewWindowAction.js rename to platform/commonUI/browse/src/windowing/NewTabAction.js index 68c88bdec6..3a4883c2e8 100644 --- a/platform/commonUI/browse/src/windowing/NewWindowAction.js +++ b/platform/commonUI/browse/src/windowing/NewTabAction.js @@ -36,7 +36,7 @@ define( * the user interface.) * @constructor */ - function NewWindowAction($window) { + function NewTabAction($window) { return { /** * Open the object in a new window @@ -49,6 +49,6 @@ define( }; } - return NewWindowAction; + return NewTabAction; } ); \ No newline at end of file diff --git a/platform/commonUI/browse/test/suite.json b/platform/commonUI/browse/test/suite.json index 350710df76..6cc41900e1 100644 --- a/platform/commonUI/browse/test/suite.json +++ b/platform/commonUI/browse/test/suite.json @@ -10,6 +10,6 @@ "navigation/NavigateAction", "navigation/NavigationService", "windowing/FullscreenAction", - "windowing/NewWindowAction", + "windowing/NewTabAction", "windowing/WindowTitler" ] diff --git a/platform/commonUI/browse/test/windowing/NewWindowActionSpec.js b/platform/commonUI/browse/test/windowing/NewTabActionSpec.js similarity index 92% rename from platform/commonUI/browse/test/windowing/NewWindowActionSpec.js rename to platform/commonUI/browse/test/windowing/NewTabActionSpec.js index 17d3ac586c..eee8be59c4 100644 --- a/platform/commonUI/browse/test/windowing/NewWindowActionSpec.js +++ b/platform/commonUI/browse/test/windowing/NewTabActionSpec.js @@ -26,7 +26,7 @@ define( function (NewWindowAction) { "use strict"; - describe("The new window action", function () { + describe("The new tab action", function () { var action, mockWindow, mockCurrentUrl; @@ -37,11 +37,11 @@ define( // to a mock Url mockWindow = jasmine.createSpyObj("$window", ["open", "location"]); mockWindow.location.href = "http://www.mockUrl.com"; - action = new NewWindowAction(mockWindow); + action = new NewTabAction(mockWindow); }); - it("New window is opened", function () { + it("New tab with current url is opened", function () { // The expection is that the mockWindow // will be called with it's location.href action.perform();