Skip to content

Commit

Permalink
Strip spaces when comparing message with expected-fail-message (#42729)
Browse files Browse the repository at this point in the history
* Strip spaces when comparing message with expected-fail-message

This is to align with current Chromium side behavior.

Bug: Chromium: 1481730
  • Loading branch information
WeizhongX authored Oct 26, 2023
1 parent b9da929 commit 40402d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
disabled:
if product == "firefox": @True
2 changes: 1 addition & 1 deletion tools/wptrunner/wptrunner/testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def test_ended(self, test, results):
# change result to unexpected if expected_fail_message does not
# match
expected_fail_message = test.expected_fail_message(result.name)
if expected_fail_message is not None and result.message != expected_fail_message:
if expected_fail_message is not None and result.message.strip() != expected_fail_message:
is_unexpected = True

if is_unexpected:
Expand Down

0 comments on commit 40402d0

Please sign in to comment.