mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 13:43:09 +00:00
[Windowing] Tabbing Rename
Renamed all instances of NewWindow to be NewTab instead. WTD-16.
This commit is contained in:
parent
dc4436e890
commit
c7154447e2
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
);
|
@ -10,6 +10,6 @@
|
||||
"navigation/NavigateAction",
|
||||
"navigation/NavigationService",
|
||||
"windowing/FullscreenAction",
|
||||
"windowing/NewWindowAction",
|
||||
"windowing/NewTabAction",
|
||||
"windowing/WindowTitler"
|
||||
]
|
||||
|
@ -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();
|
Loading…
Reference in New Issue
Block a user