blob: d62f9c4b7bfb0bcfe7fcbfa135ceda02b193c0f5 [file] [log] [blame]
* 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'));
var b = element.append(document.createElement('b'));
shouldBe(a.nextElementSibling, b);
var c = element.insertBefore(new Comment('c'), b);
shouldBe(a.nextElementSibling, b);