dx_over_dt
dx_over_dt

Reputation: 14338

Using JQuery -> QUnit in jsfiddle without external resources

I was trying to test a QUnit code snippet in jsfiddle, and noticed that if you choose JQuery under Frameworks and Extensions, a QUnit checkbox appears. I clicked that, and added the required

<div id="qunit"></div>
<div id="qunit-fixture"></div>

then added

// first tried:
test(function (assert) {
    ok(true, "Test");
});

// then tried:
QUnit.test(function (assert) {
    ok(true, "Test");
});

to the javascript box, and clicked run. Nothing happened, and Chrome's dev tool's javascript console shows that QUnit is not defined.

Googling shows several QUnit examples where they've included QUnit.css and QUnit.js as external resources, but I'm wondering if jsfiddle's QUnit External Resources option is broken, or if I'm doing something wrong.

JSFiddle link

Upvotes: 0

Views: 142

Answers (1)

dx_over_dt
dx_over_dt

Reputation: 14338

See comment by @j08691:

In the console I see https://github.com/jquery/qunit/raw/master/qunit/qunit.js Failed to load resource: the server responded with a status of 404 (Not Found). Looks like the jsFiddle guys need to update their link.

As of 3/16/2015, this is the case.

Upvotes: 0

Related Questions