Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1891)

Unified Diff: Tools/TestResultServer/model/jsonresults_unittest.py

Issue 296423002: TestResultServer: Add failure 'LEAK' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Modify jsonresults_unittest.py Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/TestResultServer/model/jsonresults_unittest.py
diff --git a/Tools/TestResultServer/model/jsonresults_unittest.py b/Tools/TestResultServer/model/jsonresults_unittest.py
old mode 100755
new mode 100644
index 6ed38f27d6475f30c4abd9c367b9cc857a184f23..366e201dd3bff6fe6a6a2941d7dbad1190549683
--- a/Tools/TestResultServer/model/jsonresults_unittest.py
+++ b/Tools/TestResultServer/model/jsonresults_unittest.py
@@ -99,6 +99,10 @@ FULL_RESULT_EXAMPLE = """ADD_RESULTS({
"expected": "IMAGE",
"actual": "IMAGE",
"time": 0.1
+ },
+ "unexpected-leak.html": {
+ "expected": "PASS",
+ "actual": "LEAK"
}
}
},
@@ -125,7 +129,8 @@ FULL_RESULT_EXAMPLE = """ADD_RESULTS({
"TIMEOUT": 16,
"IMAGE+TEXT": 0,
"FAIL": 2,
- "AUDIO": 0
+ "AUDIO": 0,
+ "LEAK": 1
},
"has_wdiff": true,
"chromium_revision": "5678"
@@ -376,7 +381,7 @@ class JsonResultsTest(unittest.TestCase):
"buildNumbers": ["3"],
"chromeRevision": ["5678"],
"failure_map": CHAR_TO_FAILURE,
- "num_failures_by_type": {"AUDIO": [0], "CRASH": [3], "FAIL": [2], "IMAGE": [1], "IMAGE+TEXT": [0], "MISSING": [0], "PASS": [10], "SKIP": [2], "TEXT": [3], "TIMEOUT": [16]},
+ "num_failures_by_type": {"AUDIO": [0], "CRASH": [3], "FAIL": [2], "IMAGE": [1], "IMAGE+TEXT": [0], "MISSING": [0], "PASS": [10], "SKIP": [2], "TEXT": [3], "TIMEOUT": [16], "LEAK": [1]},
"secondsSinceEpoch": [1368146629],
"tests": {
"media": {
@@ -422,6 +427,10 @@ class JsonResultsTest(unittest.TestCase):
"results": [[1, FAIL]],
"times": [[1, 0]],
},
+ "unexpected-leak.html": {
+ "results": [[1, LEAK]],
+ "times": [[1, 0]],
+ },
}
}
},
« no previous file with comments | « Tools/TestResultServer/model/jsonresults.py ('k') | Tools/TestResultServer/static-dashboards/flakiness_dashboard_tests.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698