You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
733 B
30 lines
733 B
4 years ago
|
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()
|
||
|
}
|
||
|
}
|