| Index: tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| diff --git a/tracing/tracing/extras/chrome/estimated_input_latency_test.html b/tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| index 1edf5f49337f5a60559637712605ff2a6a2955ce..da8e3d0847a051922f9e87838a171f7a2137f46a 100644
|
| --- a/tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| +++ b/tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| @@ -178,7 +178,7 @@ tr.b.unittest.testSuite(function() {
|
| var windows = getPostInteractiveTaskWindows(
|
| interactiveTimestamps, navStartTimestamps, traceEndTimestamp);
|
| assert.equal(windows.length, 1);
|
| - assertRangeEquals(windows[0], tr.b.Range.fromExplicitRange(50, 100));
|
| + assertRangeEquals(windows[0], tr.b.math.Range.fromExplicitRange(50, 100));
|
| });
|
|
|
| test('multiplePostInteractiveWindows', () => {
|
| @@ -188,8 +188,8 @@ tr.b.unittest.testSuite(function() {
|
| var windows = getPostInteractiveTaskWindows(
|
| interactiveTimestamps, navStartTimestamps, traceEndTimestamp);
|
| assert.equal(windows.length, 2);
|
| - assertRangeEquals(windows[0], tr.b.Range.fromExplicitRange(50, 70));
|
| - assertRangeEquals(windows[1], tr.b.Range.fromExplicitRange(80, 100));
|
| + assertRangeEquals(windows[0], tr.b.math.Range.fromExplicitRange(50, 70));
|
| + assertRangeEquals(windows[1], tr.b.math.Range.fromExplicitRange(80, 100));
|
| });
|
|
|
| test('postInteractiveWindowWithOneNavigationNeverReachingInteractive', () => {
|
| @@ -199,8 +199,8 @@ tr.b.unittest.testSuite(function() {
|
| var windows = getPostInteractiveTaskWindows(
|
| interactiveTimestamps, navStartTimestamps, traceEndTimestamp);
|
| assert.equal(windows.length, 2);
|
| - assertRangeEquals(windows[0], tr.b.Range.fromExplicitRange(50, 60));
|
| - assertRangeEquals(windows[1], tr.b.Range.fromExplicitRange(90, 100));
|
| + assertRangeEquals(windows[0], tr.b.math.Range.fromExplicitRange(50, 60));
|
| + assertRangeEquals(windows[1], tr.b.math.Range.fromExplicitRange(90, 100));
|
| });
|
|
|
| test('twoInteractiveTimeStampsWithNoNavStartInBetween', () => {
|
| @@ -212,40 +212,40 @@ tr.b.unittest.testSuite(function() {
|
| });
|
|
|
| test('expectedQueueingTime_noTasks', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(0, expectedQueueingTime(window, []), 1e-6);
|
| });
|
|
|
| test('expectedQueueingTime_singleTask', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(1000 / 2,
|
| expectedQueueingTime(window, [{start: 0, end: 1000}]),
|
| 1e-6);
|
| });
|
|
|
| test('expectedQueueingTime_singleTaskStartingBeforeWindow', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(1000 / 2,
|
| expectedQueueingTime(window, [{start: -1, end: 1000}]),
|
| 1e-6);
|
| });
|
|
|
| test('expectedQueueingTime_singleTaskEndingAfterWindow', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(1500,
|
| expectedQueueingTime(window, [{start: 0, end: 2000}]),
|
| 1e-6);
|
| });
|
|
|
| test('expectedQueueingTime_singleTaskInsideWindow', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(10 / 1000 * 10 / 2,
|
| expectedQueueingTime(window, [{start: 500, end: 510}]),
|
| 1e-6);
|
| });
|
|
|
| test('expectedQueueingTime_twoTasksInsideWindow', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(10 / 1000 * 10 / 2 + 100 / 1000 * 100 / 2,
|
| expectedQueueingTime(window,
|
| [{start: 500, end: 510}, {start: 600, end: 700}]),
|
| @@ -253,7 +253,7 @@ tr.b.unittest.testSuite(function() {
|
| });
|
|
|
| test('expectedQueueingTime_twoTasksPartiallyInsideWindow', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(10 / 1000 * 10 / 2 + 100 / 1000 * (100 + 200) / 2,
|
| expectedQueueingTime(window,
|
| [{start: 500, end: 510}, {start: 900, end: 1100}]),
|
| @@ -261,7 +261,7 @@ tr.b.unittest.testSuite(function() {
|
| });
|
|
|
| test('weightedExpectedQueueingTime', () => {
|
| - var window = tr.b.Range.fromExplicitRange(0, 1000);
|
| + var window = tr.b.math.Range.fromExplicitRange(0, 1000);
|
| assert.closeTo(1000 / 2 * 0.7,
|
| weightedExpectedQueueingTime(window,
|
| [{start: 0, end: 1000, weight: 0.7}]),
|
|
|