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

Unified Diff: tracing/tracing/extras/rail/response_interaction_record_test.html

Issue 1357983002: Invert pain to comfort throughout tracing. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: . Created 5 years, 2 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: tracing/tracing/extras/rail/response_interaction_record_test.html
diff --git a/tracing/tracing/extras/rail/response_interaction_record_test.html b/tracing/tracing/extras/rail/response_interaction_record_test.html
index cdb19452f50c0ae1a49d8a5ee77fae038bde17c5..f7b5cc3fdcdc164025ff939e249ed8a82ff8a4ef 100644
--- a/tracing/tracing/extras/rail/response_interaction_record_test.html
+++ b/tracing/tracing/extras/rail/response_interaction_record_test.html
@@ -15,13 +15,21 @@ tr.b.unittest.testSuite(function() {
test('instantiate', function() {
var responseIR = new tr.e.rail.ResponseInteractionRecord(0, 150);
- assert.equal(0, responseIR.normalizedUserPain);
+ assert.equal(1, responseIR.normalizedUserComfort);
responseIR = new tr.e.rail.ResponseInteractionRecord(0, 150.0001);
- assert.closeTo(0, responseIR.normalizedUserPain, 1e-5);
+ assert.closeTo(1, responseIR.normalizedUserComfort, 1e-5);
+ responseIR = new tr.e.rail.ResponseInteractionRecord(0, 299.9999);
+ assert.closeTo(0.8, responseIR.normalizedUserComfort, 1e-5);
+ responseIR = new tr.e.rail.ResponseInteractionRecord(0, 300.0001);
+ assert.closeTo(0.8, responseIR.normalizedUserComfort, 1e-5);
+ responseIR = new tr.e.rail.ResponseInteractionRecord(0, 999.9999);
+ assert.closeTo(0.1, responseIR.normalizedUserComfort, 1e-5);
+ responseIR = new tr.e.rail.ResponseInteractionRecord(0, 1000.0001);
+ assert.closeTo(0.1, responseIR.normalizedUserComfort, 1e-5);
responseIR = new tr.e.rail.ResponseInteractionRecord(0, 4999.999);
- assert.closeTo(1, responseIR.normalizedUserPain, 1e-5);
+ assert.closeTo(0, responseIR.normalizedUserComfort, 1e-5);
responseIR = new tr.e.rail.ResponseInteractionRecord(0, 5000);
- assert.equal(1, responseIR.normalizedUserPain);
+ assert.equal(0, responseIR.normalizedUserComfort);
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698