added local spectrum

This commit is contained in:
franknstayn
2021-05-11 19:23:26 +08:00
parent 7982c4cf4c
commit 8da18d35f7
58 changed files with 63344 additions and 2 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();
});