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> |