This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

29
node_modules/@soda/get-current-script/test.js generated vendored Normal file
View File

@ -0,0 +1,29 @@
module.exports = {
'getCurrentScript': function (browser) {
browser
.url(`${browser.launch_url}/fixtures/test.html`)
.assert.containsText(
'#app',
`${browser.launch_url}/fixtures/log-src.js`
)
.end()
},
'getCurrentScript in microtask': function (browser) {
browser
.url(`${browser.launch_url}/fixtures/test-microtask.html`)
.assert.containsText(
'#app',
`${browser.launch_url}/fixtures/log-src-in-microtask.js`
)
.end()
},
'use it as a polyfill': function (browser) {
browser
.url(`${browser.launch_url}/fixtures/test-polyfill.html`)
.assert.containsText(
'#app',
'It works!'
)
.end()
}
}