forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
23 lines
498 B
JavaScript
23 lines
498 B
JavaScript
|
|
require.config({
|
|
paths: {
|
|
jquery: '../docs/jquery-2.1.0'
|
|
}
|
|
});
|
|
|
|
asyncTest ("requirejs", function() {
|
|
require([
|
|
"../spectrum"
|
|
], function(spectrum) {
|
|
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");
|
|
equal(el.spectrum("get").toName(), "red", "Basic color setting");
|
|
el.spectrum("destroy");
|
|
|
|
QUnit.start();
|
|
});
|
|
});
|