diff --git a/tests/test262-esnext-excludelist.xml b/tests/test262-esnext-excludelist.xml index 11c090867..c90fb1e91 100644 --- a/tests/test262-esnext-excludelist.xml +++ b/tests/test262-esnext-excludelist.xml @@ -1703,12 +1703,6 @@ - - - - - - @@ -1748,12 +1742,6 @@ - - - - - - @@ -1833,12 +1821,6 @@ - - - - - - @@ -1878,12 +1860,6 @@ - - - - - - @@ -3307,12 +3283,6 @@ - - - - - - @@ -3352,12 +3322,6 @@ - - - - - - @@ -3437,12 +3401,6 @@ - - - - - - @@ -3482,12 +3440,6 @@ - - - - - - @@ -7342,33 +7294,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -7425,33 +7353,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -7489,12 +7393,6 @@ - - - - - - @@ -7534,12 +7432,6 @@ - - - - - - @@ -7619,12 +7511,6 @@ - - - - - - @@ -7664,12 +7550,6 @@ - - - - - - @@ -7942,19 +7822,7 @@ - - - - - - - - - - - - @@ -7981,19 +7849,7 @@ - - - - - - - - - - - - @@ -8036,33 +7892,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -8100,12 +7932,6 @@ - - - - - - @@ -8145,12 +7971,6 @@ - - - - - - @@ -8230,12 +8050,6 @@ - - - - - - @@ -8275,12 +8089,6 @@ - - - - - - @@ -8523,15 +8331,8 @@ - - - - - - - @@ -8546,18 +8347,6 @@ - - - - - - - - - - - - @@ -8577,18 +8366,6 @@ - - - - - - - - - - - - @@ -8608,18 +8385,6 @@ - - - - - - - - - - - - @@ -8668,18 +8433,6 @@ - - - - - - - - - - - - @@ -8699,18 +8452,6 @@ - - - - - - - - - - - - @@ -8730,18 +8471,6 @@ - - - - - - - - - - - - diff --git a/tools/runners/test262-harness.py b/tools/runners/test262-harness.py index a5ce19a67..781bdc9da 100755 --- a/tools/runners/test262-harness.py +++ b/tools/runners/test262-harness.py @@ -468,10 +468,11 @@ class TestResult(object): return 'Test262:AsyncTestComplete' not in self.stdout def has_unexpected_outcome(self): + if self.case.is_negative(): + return not (self.has_failed() and self.case.negative_match(self.get_error_output())) + if self.case.is_async_test(): return self.async_has_failed() or self.has_failed() - elif self.case.is_negative(): - return not (self.has_failed() and self.case.negative_match(self.get_error_output())) return self.has_failed()