-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
276 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
node_modules | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// From https://stackoverflow.com/questions/54925478/how-do-i-configure-intern-4-to-use-requirejs/54927704#54927704 | ||
/* globals Promise, requirejs */ | ||
intern.registerLoader(function (options) { | ||
function initLoader(requirejs) { | ||
// Configure requireJS -- use options passed in through the intern.json | ||
// config, and add anything else. | ||
requirejs.config(options); | ||
|
||
// This is the function Intern will actually call to load modules. | ||
return function (modules) { | ||
return new Promise(function (resolve, reject) { | ||
requirejs(modules, resolve, reject); | ||
}); | ||
}; | ||
} | ||
|
||
if (typeof window !== "undefined") { | ||
return intern.loadScript("decor/node_modules/requirejs/require.js").then(function () { | ||
return initLoader(requirejs); | ||
}); | ||
} else { | ||
return initLoader(require("requirejs")); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,236 @@ | ||
{ | ||
"environments": [ | ||
{ | ||
"browserName": "chrome", | ||
"chromeOptions": { | ||
"args": ["headless", "disable-gpu"] | ||
}, | ||
"fixSessionCapabilities": "no-detect" | ||
} | ||
], | ||
|
||
"leaveRemoteOpen": false, | ||
|
||
"basePath": "../", | ||
|
||
"node": { | ||
"loader": { | ||
"script": "./intern-requirejs-loader.js", | ||
"options": { | ||
"baseUrl": "." | ||
} | ||
} | ||
}, | ||
|
||
"browser": { | ||
"loader": { | ||
"script": "dpointer/intern-requirejs-loader.js", | ||
"options": { | ||
"baseUrl": "../../..", | ||
"packages": [ | ||
{ "name": "intern", "location": "dpointer/node_modules/intern" } | ||
] | ||
} | ||
} | ||
}, | ||
|
||
"suites": [ | ||
"dpointer/tests/unit/dpointer-utils" | ||
], | ||
|
||
"functionalSuites": [ | ||
], | ||
|
||
"coverage": [ | ||
"**/*.js", | ||
"!nls/**", | ||
"!node_modules/**", | ||
"!samples/**", | ||
"!tests/**", | ||
"!intern*", | ||
"!Gruntfile.js" | ||
], | ||
|
||
"tunnelOptions": { | ||
"drivers": [ "firefox", "internet explorer", "MicrosoftEdge" ] | ||
}, | ||
|
||
"WAIT_TIMEOUT": 30000, | ||
"POLL_INTERVAL": 500, | ||
|
||
"defaultTimeout": 120000, | ||
"functionalTimeouts": { | ||
"connectTimeout": 60000, | ||
"executeAsync": 30000, | ||
"find": 10000, | ||
"pageLoad": 60000 | ||
}, | ||
|
||
"configs": { | ||
"chrome-debug": { | ||
"description": "Run locally with Chrome visible and leave it open at end", | ||
"leaveRemoteOpen": true, | ||
"environments": [ | ||
{ "browser": "chrome", "fixSessionCapabilities": false } | ||
] | ||
}, | ||
|
||
"firefox": { | ||
"description": "Run locally with Firefox", | ||
"environments": [ | ||
{ | ||
"browserName": "firefox", | ||
"fixSessionCapabilities": false, | ||
"moz:firefoxOptions": { | ||
"args": [ | ||
"-headless", "--window-size=1024,768" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"firefox-debug": { | ||
"description": "Run locally with Firefox visible and leave it open at end", | ||
"leaveRemoteOpen": true, | ||
"environments": [ | ||
{ "browser": "firefox", "fixSessionCapabilities": false } | ||
] | ||
}, | ||
|
||
"safari": { | ||
"description": "Run locally with Safari visible and leave it open at end", | ||
"leaveRemoteOpen": true, | ||
"environments": [ | ||
{ "browser": "safari", "fixSessionCapabilities": false } | ||
] | ||
}, | ||
|
||
"grid": { | ||
"description": "Run tests against selenium grid, must specify serverUrl and tunnelOptions.hostname on command line", | ||
"tunnel": "null", | ||
"environments": [ | ||
{ "browser": "chrome" } | ||
] | ||
}, | ||
|
||
"browserstack": { | ||
"description": "Run tests on BrowserStack.", | ||
"tunnel": "browserstack", | ||
"maxConcurrency": 2, | ||
"capabilities": { | ||
"idle-timeout": 60, | ||
"fixSessionCapabilities": "no-detect" | ||
}, | ||
"environments": [ | ||
{ "browser": "internet explorer", "version": ["11"] }, | ||
{ | ||
"browser": "firefox", | ||
"version": ["latest"], | ||
"platform": ["WINDOWS"] | ||
}, | ||
{ | ||
"browser": "chrome", | ||
"version": ["latest"], | ||
"platform": ["WINDOWS"] | ||
}, | ||
{ "browser": "safari", "version": ["10"] } | ||
] | ||
}, | ||
|
||
"browserstack-ie": { | ||
"description": "Run tests on IE on BrowserStack.", | ||
"extends": ["browserstack"], | ||
"environments": [ | ||
{ "browserName": "internet explorer", "version": "11", "name": "dpointer"} | ||
] | ||
}, | ||
|
||
"sauce": { | ||
"description": "Run tests on SauceLabs", | ||
"environments": [ | ||
{ "browserName": "MicrosoftEdge", "fixSessionCapabilities": false, "name": "dpointer"}, | ||
{ "browserName": "internet explorer", "version": "11", "fixSessionCapabilities": false, "name": "dpointer"}, | ||
{ "browserName": "firefox", "platform": [ "Windows 10" ], "fixSessionCapabilities": false, "name": "dpointer" }, | ||
{ "browserName": "chrome", "platform": [ "Windows 10" ], "fixSessionCapabilities": false, "name": "dpointer" }, | ||
{ "browserName": "safari", "fixSessionCapabilities": false, "name": "dpointer" } | ||
], | ||
|
||
"proxyPort": 9000, | ||
"maxConcurrency": 5, | ||
"coverage": false, | ||
"tunnel": "saucelabs" | ||
}, | ||
|
||
"sauce-chrome": { | ||
"description": "Run tests on Chrome/Windows 10 on SauceLabs", | ||
"environments": [ | ||
{ "browserName": "chrome", "platform": [ "Windows 10" ], "fixSessionCapabilities": false, "name": "dpointer" } | ||
], | ||
|
||
"proxyPort": 9000, | ||
"maxConcurrency": 5, | ||
"coverage": false, | ||
"tunnel": "saucelabs" | ||
}, | ||
|
||
"sauce-firefox ": { | ||
"description": "Run tests on Firefox/Windows 10 on SauceLabs", | ||
"environments": [ | ||
{ "browserName": "firefox", "platform": [ "Windows 10" ], "fixSessionCapabilities": false, "name": "dpointer" } | ||
], | ||
|
||
"proxyPort": 9000, | ||
"maxConcurrency": 5, | ||
"coverage": false, | ||
"tunnel": "saucelabs" | ||
}, | ||
|
||
"sauce-ie": { | ||
"description": "Run tests on IE on SauceLabs.", | ||
"extends": ["sauce"], | ||
"environments": [ | ||
{ "browserName": "internet explorer", "version": "11", "fixSessionCapabilities": "no-detect", | ||
"name": "dpointer" } | ||
], | ||
"coverage": null | ||
}, | ||
|
||
"sauce-safari": { | ||
"description": "Run tests on Safari (Mac) on SauceLabs", | ||
"environments": [ | ||
{ "browserName": "safari", "fixSessionCapabilities": false, "name": "dpointer" } | ||
], | ||
|
||
"proxyPort": 9000, | ||
"maxConcurrency": 5, | ||
"coverage": false, | ||
"tunnel": "saucelabs" | ||
}, | ||
|
||
"sauce-ios": { | ||
"description": "Run tests on iOS on SauceLabs (currently hangs).", | ||
"extends": [ | ||
"sauce" | ||
], | ||
"environments": [ | ||
{ "browserName": "Safari", "platformName": "iOS", "platformVersion": "12.2", "deviceName": "iPad Simulator", | ||
"fixSessionCapabilities": "no-detect", "name": "dpointer" } | ||
], | ||
"coverage": null | ||
}, | ||
|
||
"sauce-android": { | ||
"description": "Run tests on android on SauceLabs.", | ||
"extends": [ | ||
"sauce" | ||
], | ||
"environments": [ | ||
{ "browserName": "android", "platform": "Linux", "version": "6.0", "deviceName": "Android Emulator", | ||
"deviceType": "tablet", "fixSessionCapabilities": "no-detect", "name": "dpointer" } | ||
], | ||
"coverage": null | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.