blob: 8386d2cb46723120c3149e0449f14425a95dda81 [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 final String outerHtml
* Gets the markup of the element including its content.
* @description Checks expected outerHtml settings
*/
import "dart:html";
import "../../../Utils/expect.dart";
import "../testcommon.dart";
main() {
var x = new Element.html('<div></div>');
Expect.equals('<div></div>', x.outerHtml);
x = document.body;
var h = '<!--comment--><button>foo</button>';
x.innerHtml = h;
Expect.equals('<body>$h</body>', x.outerHtml);
}