| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <link rel="import" href="/tracing/base/event.html"> | 7 <link rel="import" href="/tracing/base/event.html"> |
| 8 <link rel="import" href="/tracing/base/unittest/constants.html"> | 8 <link rel="import" href="/tracing/base/unittest/constants.html"> |
| 9 <link rel="import" href="/tracing/base/utils.html"> | 9 <link rel="import" href="/tracing/base/utils.html"> |
| 10 <link rel="import" href="/tracing/base/xhr.html"> | 10 <link rel="import" href="/tracing/base/xhr.html"> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 var TestStatus = tr.b.unittest.TestStatus; | 110 var TestStatus = tr.b.unittest.TestStatus; |
| 111 var TestTypes = tr.b.unittest.TestTypes; | 111 var TestTypes = tr.b.unittest.TestTypes; |
| 112 | 112 |
| 113 /** | 113 /** |
| 114 * @constructor | 114 * @constructor |
| 115 */ | 115 */ |
| 116 var HTMLTestCaseResult = tr.ui.b.define('x-html-test-case-result'); | 116 var HTMLTestCaseResult = tr.ui.b.define('x-html-test-case-result'); |
| 117 | 117 |
| 118 HTMLTestCaseResult.prototype = { | 118 HTMLTestCaseResult.prototype = { |
| 119 __proto__: HTMLUnknownElement.prototype, | 119 __proto__: HTMLDivElement.prototype, |
| 120 | 120 |
| 121 decorate: function() { | 121 decorate: function() { |
| 122 Polymer.dom(this).appendChild(tr.ui.b.instantiateTemplate( | 122 Polymer.dom(this).appendChild(tr.ui.b.instantiateTemplate( |
| 123 '#x-html-test-case-result-template', THIS_DOC)); | 123 '#x-html-test-case-result-template', THIS_DOC)); |
| 124 this.testCase_ = undefined; | 124 this.testCase_ = undefined; |
| 125 this.testCaseHRef_ = undefined; | 125 this.testCaseHRef_ = undefined; |
| 126 this.duration_ = undefined; | 126 this.duration_ = undefined; |
| 127 this.testStatus_ = TestStatus.PENDING; | 127 this.testStatus_ = TestStatus.PENDING; |
| 128 this.testReturnValue_ = undefined; | 128 this.testReturnValue_ = undefined; |
| 129 this.showHTMLOutput_ = false; | 129 this.showHTMLOutput_ = false; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 //this.textContent += msg; | 471 //this.textContent += msg; |
| 472 tr.b.dispatchSimpleEvent(this, 'statschange'); | 472 tr.b.dispatchSimpleEvent(this, 'statschange'); |
| 473 } | 473 } |
| 474 }; | 474 }; |
| 475 | 475 |
| 476 return { | 476 return { |
| 477 HTMLTestResults: HTMLTestResults | 477 HTMLTestResults: HTMLTestResults |
| 478 }; | 478 }; |
| 479 }); | 479 }); |
| 480 </script> | 480 </script> |
| OLD | NEW |