This commit is contained in:
Gunes Acar 2016-10-06 17:47:10 +02:00 коммит произвёл englehardt
Родитель d659792766
Коммит 64a7660048
2 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -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