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

Unified Diff: samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/index.html

Issue 204733004: Added TodoMVC startup benchmarks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/index.html
diff --git a/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/index.html b/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..9bb2721c008f828d3d356f6db83824a6dc75b767
--- /dev/null
+++ b/samples/third_party/todomvc_performance/js_todomvc/components/polymer-selection/index.html
@@ -0,0 +1,64 @@
+<!doctype html>
+<html>
+<head>
+ <title>polymer api</title>
+ <style>
+ html, body {
+ font-family: Arial, sans-serif;
+ white-space: nowrap;
+ overflow: hidden;
+ }
+ [noviewer] [ifnoviewer] {
+ display: block;
+ }
+ [detector], [ifnoviewer], [noviewer] [ifviewer] {
+ display: none;
+ }
+ [ifviewer], [ifnoviewer] {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ }
+ iframe {
+ border: none;
+ margin: 0;
+ width: 100%;
+ height: 100%;
+ }
+ #remote {
+ position: absolute;
+ top: 0;
+ right: 0;
+ }
+ </style>
+ <script src="../platform/platform.js"></script>
+ <link rel="import" href="../polymer-home-page/polymer-home-page.html">
+</head>
+<body>
+ <img detector src="../polymer-home-page/bowager-logo.png" onerror="noviewer()">
+ <polymer-home-page ifviewer></polymer-home-page>
+ <div ifnoviewer>
+ <span id="remote">[remote]</span>
+ <iframe></iframe>
+ </div>
+ <!-- -->
+ <script>
+ var remoteDocs = 'http://turbogadgetry.com/bowertopia/components/';
+ // if no local info viewer, load it remotely
+ function noviewer() {
+ document.body.setAttribute('noviewer', '');
+ var path = location.pathname.split('/');
+ var module = path.pop() || path.pop();
+ document.querySelector('iframe').src = remoteDocs + module;
+ document.querySelector('title').textContent = module;
+ }
+ // for testing only
+ var opts = window.location.search;
+ if (opts.indexOf('noviewer') >= 0) {
+ noviewer();
+ }
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698