Skip to content

Commit

Permalink
Merge pull request adobe#9740 from adobe/dangoor/fix-extman-tests-1.0
Browse files Browse the repository at this point in the history
Fixes the extension manager tests to work with 1.0 version
  • Loading branch information
ingorichter committed Oct 29, 2014
2 parents 74dd7a8 + 9ddc424 commit 47a900b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/spec/ExtensionManager-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ define(function (require, exports, module) {

it("should show disabled install button if requires newer API version", function () { // isCompatible: false, requiresNewer: true
runs(function () {
mockRegistry = { "mock-extension": makeMockExtension([">0.100"]) };
mockRegistry = { "mock-extension": makeMockExtension([">100.0"]) };
setupViewWithMockData(ExtensionManagerViewModel.RegistryViewModel);
});
runs(function () {
Expand Down Expand Up @@ -1229,7 +1229,7 @@ define(function (require, exports, module) {

it("should show enabled install button if latest requires newer API version", function () { // isCompatible: true, isLatestVersion: false, requiresNewer: true
runs(function () {
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">0.100"]) };
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">100.0"]) };
setupViewWithMockData(ExtensionManagerViewModel.RegistryViewModel);
});
runs(function () {
Expand Down Expand Up @@ -1277,7 +1277,7 @@ define(function (require, exports, module) {

it("should install latest compatible version", function () {
runs(function () {
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">0.2", ">0.100"]) };
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">0.2", ">100.0"]) };
setupViewWithMockData(ExtensionManagerViewModel.RegistryViewModel);
});
runs(function () {
Expand Down Expand Up @@ -1324,7 +1324,7 @@ define(function (require, exports, module) {
});

it("should show disabled update button for items whose available update requires newer API version", function () { // isLatestVersion: false, requiresNewer: true
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">0.100"]) };
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">100.0"]) };
var mockInstallInfo = { "mock-extension": { installInfo: makeMockInstalledVersion(mockRegistry["mock-extension"], "1.0.0") } };
ExtensionManager._setExtensions(mockInstallInfo);
setupViewWithMockData(ExtensionManagerViewModel.RegistryViewModel);
Expand Down Expand Up @@ -1586,7 +1586,7 @@ define(function (require, exports, module) {
});

it("should show disabled update button for items whose available update requires newer API version", function () { // isLatestVersion: false, requiresNewer: true
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">0.100"]) };
mockRegistry = { "mock-extension": makeMockExtension([">0.1", ">100.0"]) };
var mockInstallInfo = { "mock-extension": { installInfo: makeMockInstalledVersion(mockRegistry["mock-extension"], "1.0.0") } };
ExtensionManager._setExtensions(mockInstallInfo);
waitsForDone(ExtensionManager.downloadRegistry()); // ensure mockRegistry integrated in
Expand Down

0 comments on commit 47a900b

Please sign in to comment.