blob: 8f1d9eacb982b5cb4181b48cc59ea2580cefc305 [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.
*/
/**
* @assertion int tabIndex
* @description Checks expected tabIndex attribute values
*/
import "dart:html";
import "../../../Utils/expect.dart";
import "../testcommon.dart";
main() {
var x = new Element.html('<div tabindex="1"><p tabindex="2"></p></div>',
treeSanitizer: new NullTreeSanitizer());
Expect.equals(1, x.tabIndex);
Expect.equals(2, x.firstChild.tabIndex);
}