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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/unit-tests/audit-failures.html

Issue 2700973003: Print additional information on failed beCloseToArray tests (Closed)
Patch Set: Address review comment. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>audit.js: handling failures</title> 4 <title>audit.js: handling failures</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../resources/audit.js"></script> 7 <script src="../resources/audit.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <script> 10 <script>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 should([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.9]) 67 should([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.9])
68 .beCloseToArray([0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1], { 68 .beCloseToArray([0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1], {
69 relativeThreshold: 0.1 69 relativeThreshold: 0.1
70 }); 70 });
71 should([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.9]) 71 should([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.9])
72 .beCloseToArray([0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1], { 72 .beCloseToArray([0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1], {
73 absoluteThreshold: 0.02, 73 absoluteThreshold: 0.02,
74 relativeThreshold: 0.1 74 relativeThreshold: 0.1
75 }); 75 });
76 76
77 // Tests extra info
78 should([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
79 .beCloseToArray([2, 3, 4, 5, 6, 7, 800, 900, 1000, 1100, 1200], {
80 absoluteThreshold: 0
81 });
77 task.done(); 82 task.done();
78 }); 83 });
79 84
80 85
81 // With no argument, this executes all tasks in the order defined. 86 // With no argument, this executes all tasks in the order defined.
82 audit.run(); 87 audit.run();
83 </script> 88 </script>
84 </body> 89 </body>
85 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698