| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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() |  |   } |  | } | 
 |