<!DOCTYPE html> | |
<!-- | |
Copyright (c) 2015 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. | |
--> | |
<link rel="import" href="/base/units/time.html"> | |
<link rel="import" href="/ui/units/preferred_display_unit.html"> | |
<script> | |
'use strict'; | |
tr.b.unittest.testSuite(function() { | |
test('instantiate', function() { | |
var unit = document.createElement('tr-ui-u-preferred-display-unit'); | |
var ms = tr.b.units.Time.supportedUnits.ms; | |
unit.preferredDisplayUnit = ms; | |
assert.equal(unit.preferredDisplayUnit, ms); | |
}); | |
}); | |
</script> |