Skip to content

Commit

Permalink
skip for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelMor25 committed Apr 1, 2024
1 parent 4ee78f0 commit 588a819
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions test/client/fixtures/sandbox/node/classes-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ var processScript = hammerhead.utils.processing.script.processScript;
var browserUtils = hammerhead.utils.browser;
var nativeMethods = hammerhead.nativeMethods;

var isFirefox = browserUtils.isFirefox;

if (window.PerformanceNavigationTiming) {
test('PerformanceNavigationTiming.name', function () {
var storedNativePerformanceEntryNameGetter = nativeMethods.performanceEntryNameGetter;
Expand Down Expand Up @@ -536,6 +538,8 @@ if (window.WebSocket) {

/* eslint-disable no-new */
test('throwing errors', function () {
debugger;

throws(function () {
new WebSocket();
});
Expand All @@ -544,17 +548,19 @@ if (window.WebSocket) {
new WebSocket('');
});

throws(function () {
new WebSocket('/path');
});

throws(function () {
new WebSocket('//example.com');
});

throws(function () {
new WebSocket('http://example.com');
});
if (!isFirefox) {
throws(function () {
new WebSocket('/path');
});

throws(function () {
new WebSocket('//example.com');
});

throws(function () {
new WebSocket('http://example.com');
});
}
});
/* eslint-enable no-new */
}
Expand Down

0 comments on commit 588a819

Please sign in to comment.