Upstream version 6.35.121.0
[platform/framework/web/crosswalk.git] / src / tools / telemetry / telemetry / web_components / ui / pie_chart_unittest.js
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 'use strict';
6
7 tvcm.require('telemetry.web_components.ui.pie_chart');
8
9 tvcm.testSuite('telemetry.web_components.ui.pie_chart_unittest', function() {
10   test('simple', function() {
11     var chart = new telemetry.web_components.ui.PieChart();
12     chart.width = 400;
13     chart.height = 200;
14     chart.chartTitle = 'Chart title';
15     var data = [
16       {label: 'a', value: 100},
17       {label: 'b', value: 200},
18       {label: 'c', value: 300}
19     ];
20     chart.data = data;
21     this.addHTMLOutput(chart);
22   });
23 });