| /* |
| * Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| * for details. All rights reserved. Use of this source code is governed by a |
| * BSD-style license that can be found in the LICENSE file. |
| */ |
| /** |
| * @description This tests the ChildNode interface nextElementSibling property |
| * on a Text node. |
| */ |
| import "dart:html"; |
| import "../../../../Utils/expect.dart"; |
| import "../../../testcommon.dart"; |
| |
| main() { |
| var element = document.createElement('div'); |
| var a = element.append(new Text('a')); |
| shouldBeNull(a.nextElementSibling); |
| var b = element.append(document.createElement('b')); |
| shouldBe(a.nextElementSibling, b); |
| var c = element.insertBefore(new Comment('c'), b); |
| shouldBe(a.nextElementSibling, b); |
| } |
| |