Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baidu submissions with bugs fixed #12

Merged
merged 2 commits into from
Jan 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,30 @@
<link rel="help" href="http://www.w3.org/TR/html5/editing-apis.html#spelling-and-grammar-checking"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
</head>
<body>
<div id="log"></div>
<textarea id="testText1" spellcheck="true">Test textarea with spellcheck is true</textarea>
<textarea id="testText2" spellcheck="false">Test textarea with spellcheck is false</textarea>
<script type="text/javascript">
test(function() {
assert_true(document.getElementById("testText1").spellcheck, "check for testText1 spellcheck value");
assert_false(document.getElementById("testText2").spellcheck, "check for testText2 spellcheck value");
});
var testElement = document.createElement("testElement");
testElement.contentEditable="true";
testElement.setAttribute("spellcheck", "");
test(function() {
assert_true(testElement.spellcheck, "check for testElement.spellcheck value");
});
testElement.spellcheck="true";
}, "Getting spellcheck IDL attribute");
test(function() {
var testElement = document.createElement("testElement");
testElement.contentEditable = true;
testElement.spellcheck = true;
assert_true(testElement.spellcheck, "check for testElement.spellcheck value");
});
<!-- SPEC: The spellcheck IDL attribute, on getting, must return true if the element's spellcheck content attribute is in the true state, or if the element's spellcheck content attribute is in the default state and the element's default behavior is true-by-default, or if the element's spellcheck content attribute is in the default state and the element's default behavior is inherit-by-default and the element's parent element's spellcheck IDL attribute would return true; otherwise, if none of those conditions applies, then the attribute must instead return false. -->
testElement.spellcheck="false";
assert_equals(testElement.getAttribute("spellcheck"), "true");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this part is removed, because the spec doesn't require this.

}, "Setting spellcheck IDL attribute to true");
test(function() {
var testElement = document.createElement("testElement");
testElement.contentEditable = true;
testElement.spellcheck = false;
assert_false(testElement.spellcheck, "check for testText2 spellcheck value");
});
assert_equals(testElement.getAttribute("spellcheck"), "false");
}, "Setting spellcheck IDL attribute to false");
</script>
</body>
</html>
3 changes: 0 additions & 3 deletions old-tests/submission/Baidu/editing/MANIFEST

This file was deleted.

This file was deleted.

This file was deleted.