From 5db3a7252761f08a140ba907330aa411fa0b354e Mon Sep 17 00:00:00 2001 From: rwldrn Date: Tue, 22 Feb 2011 10:18:26 -0500 Subject: [PATCH] [#347] Adds timeout + warning --- test/popcorn.unit.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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} }; -- 2.43.0