We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd22a07 commit 8f476e4Copy full SHA for 8f476e4
test/TestStacktrace.js
@@ -606,12 +606,14 @@
606
equals(lines[1], 'line1');
607
});
608
609
- test("sync ajax", function() {
610
- expect(1);
611
- var p = new printStackTrace.implementation();
612
- var data = p.ajax(document.location.href);
613
- ok(data.indexOf('stacktrace') >= 0, 'synchronous get');
614
- });
+ if (window && window.location && window.location.hostname && window.location.hostname !== 'localhost') {
+ test("sync ajax", function() {
+ expect(1);
+ var p = new printStackTrace.implementation();
+ var data = p.ajax(document.location.href);
+ ok(data.indexOf('stacktrace') >= 0, 'synchronous get');
615
+ });
616
+ }
617
618
test("guessAnonymousFunction", function() {
619
expect(1);
0 commit comments