Revision 26e4800d
Added by koszko over 1 year ago
test/unit/test_patterns_query_manager.py | ||
---|---|---|
265 | 265 |
json_txt = run_content_script() |
266 | 266 |
if json_txt and json.loads(json_txt) == {}: |
267 | 267 |
break; |
268 |
assert attempt != 2
|
|
268 |
assert attempt != 1
|
|
269 | 269 |
|
270 | 270 |
driver.switch_to.window(windows[0]) |
271 | 271 |
execute_in_page(load_script('common/indexeddb.js')) |
... | ... | |
283 | 283 |
json.loads(tree_json) |
284 | 284 |
if all([m['identifier'] in tree_json for m in sample_mappings]): |
285 | 285 |
break |
286 |
assert attempt != 2
|
|
286 |
assert attempt != 1
|
|
287 | 287 |
|
288 | 288 |
driver.switch_to.window(windows[0]) |
289 | 289 |
execute_in_page( |
... | ... | |
300 | 300 |
}''', |
301 | 301 |
[sm['identifier'] for sm in sample_mappings]) |
302 | 302 |
|
303 |
for attempt in range(10): |
|
304 |
if json.loads(run_content_script()) == {}: |
|
305 |
break |
|
306 |
assert attempt != 9 |
|
303 |
for attempt in range(2): |
|
304 |
json_txt = run_content_script() |
|
305 |
if json_txt and json.loads(json_txt) == {}: |
|
306 |
break; |
|
307 |
assert attempt != 1 |
Also available in: Unified diff
more improvements for abrowser&librewolf