| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import 'dart:html'; | 5 import 'dart:html'; |
| 6 | 6 |
| 7 import 'package:minitest/minitest.dart'; | 7 import 'package:expect/minitest.dart'; |
| 8 | 8 |
| 9 import 'util.dart'; | 9 import 'util.dart'; |
| 10 | 10 |
| 11 main() { | 11 main() { |
| 12 var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElemt'); | 12 var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElemt'); |
| 13 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); | 13 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); |
| 14 var isText = predicate((x) => x is Text, 'is a Text'); | 14 var isText = predicate((x) => x is Text, 'is a Text'); |
| 15 | 15 |
| 16 void expectNoSuchMethod(void fn()) => | 16 void expectNoSuchMethod(void fn()) => |
| 17 expect(fn, throwsNoSuchMethodError); | 17 expect(fn, throwsNoSuchMethodError); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 var child = new DivElement(); | 259 var child = new DivElement(); |
| 260 parent.children.add(child); | 260 parent.children.add(child); |
| 261 | 261 |
| 262 parent.insertAdjacentText('beforeend', 'test'); | 262 parent.insertAdjacentText('beforeend', 'test'); |
| 263 | 263 |
| 264 expect(parent.nodes.length, 2); | 264 expect(parent.nodes.length, 2); |
| 265 expect(parent.nodes[1], isText); | 265 expect(parent.nodes[1], isText); |
| 266 }); | 266 }); |
| 267 }); | 267 }); |
| 268 } | 268 } |
| OLD | NEW |