Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1442)

Unified Diff: Tools/GardeningServer/ui/ct-test-output.html

Issue 350563002: Port first garden-o-matic component over to polymer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add files Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/ui/ct-test-output.html
diff --git a/Tools/GardeningServer/ui/ct-test-output.html b/Tools/GardeningServer/ui/ct-test-output.html
new file mode 100644
index 0000000000000000000000000000000000000000..7d555484e36aa0b86801c66328400b4e74c964f8
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-test-output.html
@@ -0,0 +1,46 @@
+<!--
+Copyright 2014 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.
+-->
+
+ <polymer-element name="ct-test-output" attributes="type url">
+ <template>
+ <style>
+ .result {
+ border: 1px solid gray;
+ }
+ iframe {
+ border: none;
+ width: 100%;
+ height: 400px;
+ }
+ img {
+ width: 100%;
+ }
+ </style>
+
+ <div class="result">
+ <template if="{{url}}">
+ <template if="{{type == _kImageType}}">
+ <img src="{{url}}">
+ </template>
+ <template if="{{type == _kTextType}}">
+ <iframe src="{{url}}"></iframe>
+ </template>
+ <template if="{{type == _kAudioType}}">
+ <audio controls src="{{url}}"></audio>
+ </template>
+ </template>
+ </div>
+ </template>
+ <script>
+ Polymer({
+ type: '',
+ url: '',
+ _kAudioType: results.kAudioType,
+ _kImageType: results.kImageType,
+ _kTextType: results.kTextType,
+ });
+ </script>
+</polymer-element>
« no previous file with comments | « Tools/GardeningServer/ui/ct-results-comparison-tests.html ('k') | Tools/GardeningServer/ui/ct-test-output-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698