blob: 680aca9d74a747f63db2c48f2c416582d1e6ada4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<title>LinuxPerfDrmParser tests</title>
<script src="base.js"></script>
</head>
<body>
<script>
'use strict';
base.require('unittest');
base.require('test_utils');
base.require('linux_perf_importer');
function testDrmImport() {
var lines = [
' chrome-2465 [000] 71.653157: drm_vblank_event: ' +
'crtc=0, seq=4233',
' <idle>-0 [000] 71.669851: drm_vblank_event: ' +
'crtc=0, seq=4234'
];
var m = new tracing.TimelineModel(lines.join('\n'), false);
assertEquals(0, m.importErrors.length);
var threads = m.getAllThreads();
assertEquals(1, threads.length);
var vblankThread = threads[0];
assertEquals('drm_vblank', vblankThread.name);
assertEquals(2, vblankThread.slices.length);
}
</script>
</body>
</html>