[Windowing] Tabbing Rename

Renamed all instances of NewWindow to be
NewTab instead. WTD-16.
This commit is contained in:
Shivam Dave 2015-06-22 15:35:08 -07:00
parent dc4436e890
commit c7154447e2
4 changed files with 8 additions and 8 deletions

View File

@ -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",

View File

@ -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;
}
);

View File

@ -10,6 +10,6 @@
"navigation/NavigateAction",
"navigation/NavigationService",
"windowing/FullscreenAction",
"windowing/NewWindowAction",
"windowing/NewTabAction",
"windowing/WindowTitler"
]

View File

@ -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();