| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="../ct-test-output.html"> | 7 <link rel="import" href="../ct-test-output.html"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 (function () { | 10 (function () { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 describe('text', function() { | 43 describe('text', function() { |
| 44 before(function() { | 44 before(function() { |
| 45 resultType = results.kTextType; | 45 resultType = results.kTextType; |
| 46 url = 'http://domain.com/dummy-expected'; | 46 url = 'http://domain.com/dummy-expected'; |
| 47 }); | 47 }); |
| 48 | 48 |
| 49 it('text', function() { | 49 it('text', function() { |
| 50 assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0); | 50 assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0); |
| 51 assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0); | 51 assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0); |
| 52 | 52 |
| 53 var iframes = output.shadowRoot.querySelectorAll('iframe'); | 53 var iframes = output.shadowRoot.querySelectorAll('ct-popout-iframe'); |
| 54 assert.lengthOf(iframes, 1); | 54 assert.lengthOf(iframes, 1); |
| 55 assert.equal(iframes[0].src, url); | 55 assert.equal(iframes[0].src, url); |
| 56 }); | 56 }); |
| 57 }); | 57 }); |
| 58 | 58 |
| 59 describe('audio', function() { | 59 describe('audio', function() { |
| 60 before(function() { | 60 before(function() { |
| 61 resultType = results.kAudioType; | 61 resultType = results.kAudioType; |
| 62 url = 'http://domain.com/dummy-expected'; | 62 url = 'http://domain.com/dummy-expected'; |
| 63 }); | 63 }); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 94 it('no output', function() { | 94 it('no output', function() { |
| 95 assert.lengthOf(output.shadowRoot.querySelectorAll('iframe'), 0); | 95 assert.lengthOf(output.shadowRoot.querySelectorAll('iframe'), 0); |
| 96 assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0); | 96 assert.lengthOf(output.shadowRoot.querySelectorAll('audio'), 0); |
| 97 assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0); | 97 assert.lengthOf(output.shadowRoot.querySelectorAll('img'), 0); |
| 98 }); | 98 }); |
| 99 }); | 99 }); |
| 100 }); | 100 }); |
| 101 | 101 |
| 102 })(); | 102 })(); |
| 103 </script> | 103 </script> |
| OLD | NEW |