Revision ad69f9c8
Added by koszko over 1 year ago
test/unit/test_indexeddb.py | ||
---|---|---|
323 | 323 |
|
324 | 324 |
# Create elements that will have tracked data inserted under them. |
325 | 325 |
driver.switch_to.window(windows[0]) |
326 |
execute_in_page(''' |
|
327 |
for (const store_name of trackable) { |
|
328 |
const h2 = document.createElement("h2"); |
|
329 |
h2.innerText = store_name; |
|
330 |
document.body.append(h2); |
|
331 |
|
|
332 |
const ul = document.createElement("ul"); |
|
333 |
ul.id = store_name; |
|
334 |
document.body.append(ul); |
|
335 |
} |
|
336 |
''') |
|
326 |
execute_in_page( |
|
327 |
''' |
|
328 |
for (const store_name of trackable) { |
|
329 |
const h2 = document.createElement("h2"); |
|
330 |
h2.innerText = store_name; |
|
331 |
document.body.append(h2); |
|
332 |
|
|
333 |
const ul = document.createElement("ul"); |
|
334 |
ul.id = store_name; |
|
335 |
document.body.append(ul); |
|
336 |
} |
|
337 |
''') |
|
337 | 338 |
|
338 | 339 |
# Mock initial_data. |
339 | 340 |
sample_resource = make_sample_resource() |
Also available in: Unified diff
add support for testing with other browsers (especially Abrowser and Librewolf)
There are still some spurious failures when running under those newer browsers. Those will be systematically investigated and fixed.