first commit

This commit is contained in:
root
2021-07-10 10:15:55 +00:00
commit 124161318b
7693 changed files with 808583 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
require(["../spectrum", "./qunit"], function (spectrum, QUnit) {
QUnit.module("Initialization");
QUnit.test("Custom offset", function (assert) {
assert.ok($.fn.spectrum, "Plugin has been loaded");
// Just do some basic stuff with the API as a sanity check.
var el = $("<input id='spec' />").spectrum();
el.spectrum("set", "red");
assert.equal(el.spectrum("get").toName(), "red", "Basic color setting");
el.spectrum("destroy");
});
QUnit.start();
});