Skip to content

Commit

Permalink
Adding condition to ajax test that normally fails on localhost or fil…
Browse files Browse the repository at this point in the history
…e:// urls
  • Loading branch information
eriwen committed Oct 3, 2012
1 parent fd22a07 commit 8f476e4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/TestStacktrace.js
Expand Up @@ -606,12 +606,14 @@
equals(lines[1], 'line1'); equals(lines[1], 'line1');
}); });


test("sync ajax", function() { if (window && window.location && window.location.hostname && window.location.hostname !== 'localhost') {
expect(1); test("sync ajax", function() {
var p = new printStackTrace.implementation(); expect(1);
var data = p.ajax(document.location.href); var p = new printStackTrace.implementation();
ok(data.indexOf('stacktrace') >= 0, 'synchronous get'); var data = p.ajax(document.location.href);
}); ok(data.indexOf('stacktrace') >= 0, 'synchronous get');
});
}


test("guessAnonymousFunction", function() { test("guessAnonymousFunction", function() {
expect(1); expect(1);
Expand Down

0 comments on commit 8f476e4

Please sign in to comment.