| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library jsTest; | 5 library jsTest; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'dart:typed_data' show ByteBuffer, Int32List; | 9 import 'dart:typed_data' show ByteBuffer, Int32List; |
| 10 import 'dart:indexed_db' show IdbFactory, KeyRange; | 10 import 'dart:indexed_db' show IdbFactory, KeyRange; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return result['value']; | 147 return result['value']; |
| 148 } | 148 } |
| 149 | 149 |
| 150 function addTestProperty(o) { | 150 function addTestProperty(o) { |
| 151 o.testProperty = "test"; | 151 o.testProperty = "test"; |
| 152 } | 152 } |
| 153 | 153 |
| 154 function fireClickEvent(w) { | 154 function fireClickEvent(w) { |
| 155 var event = w.document.createEvent('Events'); | 155 var event = w.document.createEvent('Events'); |
| 156 event.initEvent('click', true, false); | 156 event.initEvent('click', true, false); |
| 157 w.document.body.dispatchEvent(event); | 157 w.document.dispatchEvent(event); |
| 158 } | 158 } |
| 159 | 159 |
| 160 function Bar() { | 160 function Bar() { |
| 161 return "ret_value"; | 161 return "ret_value"; |
| 162 } | 162 } |
| 163 Bar.foo = "property_value"; | 163 Bar.foo = "property_value"; |
| 164 | 164 |
| 165 function Baz(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) { | 165 function Baz(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) { |
| 166 this.f1 = p1; | 166 this.f1 = p1; |
| 167 this.f2 = p2; | 167 this.f2 = p2; |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 // is lost when typed arrays are passed between JS and Dart. | 989 // is lost when typed arrays are passed between JS and Dart. |
| 990 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]), | 990 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]), |
| 991 // isTrue); | 991 // isTrue); |
| 992 context.deleteProperty('o'); | 992 context.deleteProperty('o'); |
| 993 } | 993 } |
| 994 }); | 994 }); |
| 995 | 995 |
| 996 }); | 996 }); |
| 997 }); | 997 }); |
| 998 } | 998 } |
| OLD | NEW |