1. 
 
2. 
 require(["../spectrum", "./qunit"], function (spectrum, QUnit) {
3. 
   QUnit.module("Initialization");
4. 
   QUnit.test("Custom offset", function (assert) {
5. 
     assert.ok($.fn.spectrum, "Plugin has been loaded");
6. 
  
7. 
     // Just do some basic stuff with the API as a sanity check.
8. 
     var el = $("<input id='spec' />").spectrum();
9. 
     el.spectrum("set", "red");
10. 
     assert.equal(el.spectrum("get").toName(), "red", "Basic color setting");
11. 
     el.spectrum("destroy");
12. 
   });
13. 
  
14. 
   QUnit.start();
15. 
 });
16.