Skip to content

Commit

Permalink
minor test updates for issue bgrins#187
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrins committed Feb 25, 2014
1 parent 98ef442 commit df0ac06
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/tests.js
Original file line number Diff line number Diff line change
@@ -264,6 +264,7 @@ test( "Options Can Be Set and Gotten Programmatically", function() {
appendToOther.spectrum("destroy");
appendToOtherFlat.spectrum("destroy");
appendToParent.spectrum("destroy").remove();
delete window.localStorage["spectrum.example"];
});

test ("Show Input works as expected", function() {
@@ -389,11 +390,13 @@ test("The selectedPalette should be updated in each spectrum instance, when stor
var selectedColor = secondEl.spectrum("container").find('span[data-color="' + colorToChoose + '"]');
ok(selectedColor.length > 0, "Selected color is also shown in the others instance's palette.");

delete window.localStorage["spectrum.tests"];

firstEl.spectrum("destroy");
secondEl.spectrum("destroy");
});

test("The selectedPalette should not be updated in spectrum instances, that have different storageKeys.", function () {
test("The selectedPalette should not be updated in spectrum instances that have different storageKeys.", function () {

delete window.localStorage["spectrum.test_1"];
delete window.localStorage["spectrum.test_2"];
@@ -417,4 +420,7 @@ test("The selectedPalette should not be updated in spectrum instances, that have

firstEl.spectrum("destroy");
secondEl.spectrum("destroy");

delete window.localStorage["spectrum.test_1"];
delete window.localStorage["spectrum.test_2"];
});

0 comments on commit df0ac06

Please sign in to comment.