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

Unified Diff: tracing/tracing/importer/user_model_builder_test.html

Issue 2778993004: Fix a bug where video animations were being merged into other animations (Closed)
Patch Set: Checkpoint. Created 3 years, 9 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
« no previous file with comments | « tracing/tracing/importer/find_input_expectations.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/importer/user_model_builder_test.html
diff --git a/tracing/tracing/importer/user_model_builder_test.html b/tracing/tracing/importer/user_model_builder_test.html
index 3d4c2a671eb2ba0ec9235f0ee11f6fb8a188ade5..b875559b5f8de1903fe4d5f48f262c91f2966ed0 100644
--- a/tracing/tracing/importer/user_model_builder_test.html
+++ b/tracing/tracing/importer/user_model_builder_test.html
@@ -99,6 +99,32 @@ tr.b.unittest.testSuite(function() {
verifier.verify();
});
+ test('videoExpectations_dontMergeWithOtherAnimations', function() {
+ const verifier = new UserExpectationVerifier();
+ verifier.customizeModelCallback = model => {
+ model.rendererMain.asyncSliceGroup.push(tr.c.TestUtils.newAsyncSliceEx(
+ {title: 'VideoPlayback', start: 0, end: 100, isTopLevel: true}));
+ ChromeTestUtils.addFrameEvent(model, {start: 10, end: 20}),
+ model.rendererMain.asyncSliceGroup.push(tr.c.TestUtils.newAsyncSliceEx(
+ {title: 'Animation', start: 90, end: 190, isTopLevel: true}));
+ ChromeTestUtils.addFrameEvent(model, {start: 110, end: 120});
+ };
+ verifier.expectedUEs = [
+ {title: 'Video Animation', start: 0, end: 100, eventCount: 2},
+ {title: 'CSS Animation', start: 90, end: 190, eventCount: 2},
+ ];
+ verifier.expectedSegments = [
+ {start: 0, end: 90, expectations: [verifier.expectedUEs[0]]},
+ {
+ start: 90,
+ end: 100,
+ expectations: [verifier.expectedUEs[0], verifier.expectedUEs[1]]
+ },
+ {start: 100, end: 190, expectations: [verifier.expectedUEs[1]]},
+ ];
+ verifier.verify();
+ });
+
test('slowMouseMoveResponses', function() {
var verifier = new UserExpectationVerifier();
verifier.customizeModelCallback = function(model) {
« no previous file with comments | « tracing/tracing/importer/find_input_expectations.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698