Commit 2febd719 authored by Rakib M. Hasan's avatar Rakib M. Hasan Committed by Commit Bot

[ChromeDriver] Use blinkpy's method to get Webdriver test expectations

Instead of using typ's methods to get the test expectations, we should
use blinkpy's methods.

Bug: 986447
Change-Id: I58508a44536ccc73864c1acd10c2be06af82a3a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2067377Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Reviewed-by: default avatarRakib Hasan <rmhasan@google.com>
Commit-Queue: Rakib Hasan <rmhasan@google.com>
Cr-Commit-Position: refs/heads/master@{#743217}
parent 910ed063
...@@ -348,8 +348,7 @@ if __name__ == '__main__': ...@@ -348,8 +348,7 @@ if __name__ == '__main__':
success_count = 0 success_count = 0
for test_result in test_results: for test_result in test_results:
exp = webdriver_expectations.expectations[0].expectations_for( exp = webdriver_expectations.get_expectations(test_result.test_name)
test_result.test_name)
expected_result = ' '.join(exp.results) expected_result = ' '.join(exp.results)
is_unexpected = test_result.test_status not in exp.results is_unexpected = test_result.test_status not in exp.results
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment