From: rwldrn Date: Tue, 22 Feb 2011 15:18:26 +0000 (-0500) Subject: [#347] Adds timeout + warning X-Git-Tag: v0.4~34^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5db3a7252761f08a140ba907330aa411fa0b354e;p=popcorn-js.git [#347] Adds timeout + warning --- diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index eb913a6..e355c78 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -1,4 +1,16 @@ +if ( /file/.test( location.protocol ) ) { + + test("HTTP", function () { + + ok( false, "Please run test suite via an HTTP connection" ); + + }); + + throw "Please run test suite via an HTTP connection"; +} + + module("Popcorn"); test("API", function () { @@ -1220,7 +1232,7 @@ test("JSONP Response", function () { expect(expects); - stop(); + stop(10000); var testObj = { "data": {"lang": "en", "length": 25} };