blob: 6e1d7cbd7ea34b2e622abbc2b94493256a84ad95 [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 whether alt text is shown for image elements with
* no src attribute.
*/
import "dart:html";
import "../../../../Utils/expect.dart";
import "../../../testcommon.dart";
import "pwd.dart";
main() {
document.body.setInnerHtml('''
<img alt="PASS"><br>
<img alt="PASS" width="100" height="50" border="1"><br>
<img src="$root/resources/blue_rect.jpg" alt="FAILED!"><br>
''', treeSanitizer: new NullTreeSanitizer());
}