Update To 11.40.268.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 <link rel="import" href="ct-popout-iframe.html">
8
9 <polymer-element name="ct-test-output" attributes="type url">
10     <template>
11         <style>
12             .result {
13                 border: 1px solid gray;
14                 line-height: 0;
15             }
16             img {
17                 width: 100%;
18             }
19             ct-popout-iframe {
20                 height: 400px;
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                     <ct-popout-iframe src="{{url}}"></ct-popout-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>