blob: 9fdec4dc0816d328f0e825ee5895e1ea5c310ff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<!DOCTYPE html>
<!--
Copyright (c) 2013 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="/perf_insights/value/value.html">
<link rel="import" href="/perf_insights/value/run_info.html">
<link rel="import" href="/perf_insights/results/results.html">
<link rel="import" href="/perf_insights/ui/reports/task_info_report.html">
<link rel="import" href="/perf_insights/perf_insights_full_config.html">
<link rel="import" href="/tracing/base/xhr.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
var test_utils = tr.c.TestUtils;
test('savedData', function() {
// TODO(nduca): #1219, stop reading an actual wr file as our test data and
// use synthetic data.
var dataString = tr.b.getSync(
'/perf_insights/ui/reports/task_info_result_view_test_data.json');
var results = pi.r.Results.fromDict(JSON.parse(dataString));
var view = document.createElement('pi-ui-r-task-info-report');
view.mapResults = results;
this.addHTMLOutput(view);
});
});
</script>
|