Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / GardeningServer / ui / ct-test-output.html
1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6
7  <polymer-element name="ct-test-output" attributes="type url">
8     <template>
9         <style>
10             .result {
11                 border: 1px solid gray;
12                 line-height: 0;
13             }
14             iframe {
15                 border: none;
16                 width: 100%;
17                 height: 400px;
18             }
19             img {
20                 width: 100%;
21             }
22         </style>
23
24         <div class="result">
25             <template if="{{url}}">
26                 <template if="{{type == _kImageType}}">
27                     <img src="{{url}}">
28                 </template>
29                 <template if="{{type == _kTextType}}">
30                     <iframe src="{{url}}"></iframe>
31                 </template>
32                 <template if="{{type == _kAudioType}}">
33                     <audio controls src="{{url}}"></audio>
34                 </template>
35             </template>
36         </div>
37     </template>
38     <script>
39         Polymer({
40             type: '',
41             url: '',
42             _kAudioType: results.kAudioType,
43             _kImageType: results.kImageType,
44             _kTextType: results.kTextType,
45         });
46     </script>
47 </polymer-element>