Skip to content

Commit

Permalink
add test for issue bgrins#70
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrins committed Jun 23, 2013
1 parent 2d55c85 commit 8d42113
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,16 @@ test( "Options Can Be Set and Gotten Programmatically", function() {
equal ( appendToParent.spectrum("container").parent()[0], container[0], "Passing 'parent' to appendTo works as expected");


// Issue #70 - https://github.com/bgrins/spectrum/issues/70
equal (spec.spectrum("option", "showPalette"), true, "showPalette is true by default");
spec.spectrum("option", "showPalette", false);

equal (spec.spectrum("option", "showPalette"), false, "showPalette is false after setting showPalette");
spec.spectrum("option", "showPaletteOnly", true);

equal (spec.spectrum("option", "showPaletteOnly"), true, "showPaletteOnly is true after setting showPaletteOnly");
equal (spec.spectrum("option", "showPalette"), true, "showPalette is true after setting showPaletteOnly");

spec.spectrum("destroy");
appendToDefault.spectrum("destroy");
appendToOther.spectrum("destroy");
Expand Down

0 comments on commit 8d42113

Please sign in to comment.