<!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 i18n-values="dir:textdirection;">
<title>Track tests</title>
<style>
.container {
border: 1px solid red;
}
</style>
<script src="/src/base.js"></script>
<script>
base.require('unittest');
base.require('test_utils');
base.require('timeline_viewport');
base.require('tracks.ruler_track');
</script>
</head>
<body>
<script>
'use strict';
var Viewport = tracing.TimelineViewport;
var RulerTrack = tracing.tracks.RulerTrack;
function testViewport() {
var testEl = this.addHTMLOutput();
var track = RulerTrack();
testEl.appendChild(track);
track.viewport = new Viewport(testEl);
track.viewport.setPanAndScale(0,
track.clientWidth / 1000);
}
</script>
</body>
</html>