blob: 8a00c6d29a1560c3602472308b1840b831388004 [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 Map<String, String> getNamespacedAttributes(String namespace)
* Gets a map for manipulating the attributes of a particular namespace.
* @description Checks expected attributes values.
*/
import "dart:html";
import "../../../Utils/expect.dart";
import "../testcommon.dart";
main() {
IFrameElement x=new IFrameElement();
x.setNamespacedAttributes(XlinkNamespace, "href", "foo");
x.setNamespacedAttributes(XlinkNamespace, "custom", "bar");
Map attrs=x.getNamespacedAttributes(XlinkNamespace);
print("length=${attrs.length}");
var key=attrs.keys[0];
var val=attrs[key];
print("attrs[$key]=$val;");
Expect.equals('foo', attrs["href"]);
Expect.equals('bar', attrs["custom"]);
}