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

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

Issue 559843006: SheriffOMatic: Add ct-popout-iframe and switch test output iframes to use it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 3 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/test/ct-popout-iframe.html
diff --git a/Tools/GardeningServer/ui/test/ct-popout-iframe.html b/Tools/GardeningServer/ui/test/ct-popout-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..5df1e23991bc5acd2a4ac5ee9475b50c5c90590b
--- /dev/null
+++ b/Tools/GardeningServer/ui/test/ct-popout-iframe.html
@@ -0,0 +1,41 @@
+<!--
+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.
+-->
+
+<link rel="import" href="../ct-popout-iframe.html">
+
+<script>
+(function() {
+
+var assert = chai.assert;
+
+describe('ct-popout-iframe', function() {
+ it('has iframe and link', function() {
+ var elem = document.createElement('ct-popout-iframe');
+
+ var iframes = elem.shadowRoot.querySelectorAll('iframe');
+ assert.lengthOf(iframes, 1);
+
+ var links = elem.shadowRoot.querySelectorAll('a');
+ assert.lengthOf(links, 1);
+
+ var thisHref = location.href;
+ assert.equal(iframes[0].src, thisHref);
+ assert.equal(links[0].href, thisHref);
+
+ var url = 'http://example.com/results.txt';
+ elem.src = url;
+
+ describe('src', function() {
+ it('set to a URL', function() {
+ assert.equal(iframes[0].src, url);
+ assert.equal(links[0].href, url);
+ });
+ });
+ });
+});
+
+})();
+</script>
« no previous file with comments | « Tools/GardeningServer/ui/ct-test-output.html ('k') | Tools/GardeningServer/ui/test/ct-test-output-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698