mirror of
https://github.com/servo/servo
synced 2026-04-29 02:47:55 +02:00
27 lines
961 B
HTML
27 lines
961 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Editing: designMode attribute test</title>
|
|
<link rel="author" title="Baidu" href="mailto: guopengcheng@baidu.com"/>
|
|
<link rel="help" href="https://html.spec.whatwg.org/multipage/#making-entire-documents-editable:-the-designmode-idl-attribute"/>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
test(function() {
|
|
assert_equals(document.designMode, "off", "check for designMode value");
|
|
}, "initial designMode attribute");
|
|
document.designMode="on";
|
|
test(function() {
|
|
assert_equals(document.designMode, "on", "check for designMode value");
|
|
}, "set designMode = \"on\"");
|
|
document.designMode="off";
|
|
test(function() {
|
|
assert_equals(document.designMode,"off", "check for designMode value");
|
|
}, "set designMode = \"off\"");
|
|
</script>
|
|
</body>
|
|
</html>
|