зеркало из https://github.com/openwpm/OpenWPM.git
Fix expected import error.
This commit is contained in:
Родитель
d659792766
Коммит
64a7660048
|
@ -101,18 +101,18 @@ http_responses = {
|
|||
|
||||
# HTTP request call stack instrumentation
|
||||
# Expected stack frames from http_stack_trace.html page
|
||||
expected_http_call_stack = [{"func_name": "inject_js",
|
||||
"filename": BASE_TEST_URL + "/http_stacktrace/http_stack_trace.html", # noqa
|
||||
"line_no": "11",
|
||||
"col_no": "7",
|
||||
"async_cause": "null"
|
||||
},
|
||||
{"func_name": "onload",
|
||||
"filename": BASE_TEST_URL + "/http_stacktrace/http_stack_trace.html", # noqa
|
||||
"line_no": "1",
|
||||
"col_no": "1",
|
||||
"async_cause": "null"
|
||||
}]
|
||||
http_call_stack = [{"func_name": "inject_js",
|
||||
"filename": BASE_TEST_URL + "/http_stacktrace/http_stack_trace.html", # noqa
|
||||
"line_no": "11",
|
||||
"col_no": "7",
|
||||
"async_cause": "null"
|
||||
},
|
||||
{"func_name": "onload",
|
||||
"filename": BASE_TEST_URL + "/http_stacktrace/http_stack_trace.html", # noqa
|
||||
"line_no": "1",
|
||||
"col_no": "1",
|
||||
"async_cause": "null"
|
||||
}]
|
||||
|
||||
# Canvas Fingerprinting DB calls and property sets
|
||||
CANVAS_TEST_URL = u"%s/canvas_fingerprinting.html" % BASE_TEST_URL
|
||||
|
|
|
@ -57,4 +57,4 @@ class TestHTTPInstrument(OpenWPMTest):
|
|||
url, stacktrace = row
|
||||
if url.endswith("shared/test_script.js"):
|
||||
stack_frames = parse_http_stack_trace_str(stacktrace)
|
||||
assert stack_frames == expected_http_call_stack
|
||||
assert stack_frames == expected.http_call_stack
|
||||
|
|
Загрузка…
Ссылка в новой задаче