blob: 9495881a9fca1ead61dd28e623a4c166c7945215 [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 bool translate
/// Specifies whether this element's text content changes when the page is
/// localized.
/// @description Checks expected attribute values.
import "dart:html";
import "../../../Utils/expect.dart";
main() {
var x = new Element.html('<iframe translate=no></iframe>');
Expect.isFalse(x.translate, 'explicit no');
x = new Element.html('<iframe translate=yes></iframe>');
Expect.isTrue(x.translate, 'explicit yes');
x = new Element.html('<iframe translate=""></iframe>');
Expect.isTrue(x.translate, 'empty string is yes');