blob: 7d301fe76b1e5637dfe359ffe6da5a9d79cf5311 [file] [log] [blame]
This is a testharness.js-based test.
PASS The :read-write pseudo-class must not match input elements to which the readonly attribute does not apply
FAIL The :read-only pseudo-class must match input elements to which the readonly attribute does not apply assert_array_equals: lengths differ, expected array [Element node <input id="checkbox1" type="checkbox"></input>, Element node <input id="hidden1" type="hidden" value="abc"></input>, Element node <input id="range1" type="range"></input>, Element node <input id="color1" type="color"></input>, Element node <input id="radio1" type="radio"></input>, Element node <input id="file1" type="file"></input>, Element node <input id="submit1" type="submit"></input>, Element node <input id="image1" type="image"></input>, Element node <input id="button1" type="button" value="Button"></input>, Element node <input id="reset1" type="reset"></input>] length 10, got [] length 0
FAIL The :read-write pseudo-class must match input elements to which the readonly attribute applies, and that are mutable assert_array_equals: lengths differ, expected array [Element node <input id="input1"></input>] length 1, got [Element node <input id="input1"></input>, Element node <input id="input3" disabled=""></input>] length 2
FAIL The :read-only pseudo-class must not match input elements to which the readonly attribute applies, and that are mutable assert_array_equals: lengths differ, expected array [Element node <input id="input2" readonly=""></input>, Element node <input id="input3" disabled=""></input>, Element node <input id="input4" type="checkbox"></input>, Element node <input id="input5" type="checkbox" readonly=""></input>] length 4, got [Element node <input id="input2" readonly=""></input>] length 1
FAIL The :read-write pseudo-class must not match input elements after the readonly attribute has been added assert_array_equals: lengths differ, expected array [] length 0, got [Element node <input id="input3" disabled=""></input>] length 1
FAIL The :read-only pseudo-class must match input elements after the readonly attribute has been added assert_array_equals: lengths differ, expected array [Element node <input id="input1" readonly="readonly"></input>, Element node <input id="input2" readonly=""></input>, Element node <input id="input3" disabled=""></input>, Element node <input id="input4" type="checkbox"></input>, Element node <input id="input5" type="checkbox" readonly=""></input>] length 5, got [Element node <input id="input1" readonly="readonly"></input>, Element node <input id="input2" readonly=""></input>] length 2
FAIL The :read-write pseudo-class must not match input elements after the readonly attribute has been removed assert_array_equals: lengths differ, expected array [Element node <input id="input1"></input>] length 1, got [Element node <input id="input1"></input>, Element node <input id="input3" disabled=""></input>] length 2
FAIL The :read-only pseudo-class must match input elements after the readonly attribute has been removed assert_array_equals: lengths differ, expected array [Element node <input id="input2" readonly=""></input>, Element node <input id="input3" disabled=""></input>, Element node <input id="input4" type="checkbox"></input>, Element node <input id="input5" type="checkbox" readonly=""></input>] length 4, got [Element node <input id="input2" readonly=""></input>] length 1
FAIL The :read-write pseudo-class must not match input elements after the disabled attribute has been added assert_array_equals: lengths differ, expected array [] length 0, got [Element node <input id="input1" disabled=""></input>, Element node <input id="input3" disabled=""></input>] length 2
FAIL The :read-only pseudo-class must match input elements after the disabled attribute has been added assert_array_equals: lengths differ, expected array [Element node <input id="input1" disabled=""></input>, Element node <input id="input2" readonly=""></input>, Element node <input id="input3" disabled=""></input>, Element node <input id="input4" type="checkbox"></input>, Element node <input id="input5" type="checkbox" readonly=""></input>] length 5, got [Element node <input id="input2" readonly=""></input>] length 1
FAIL The :read-write pseudo-class must match input elements after the disabled attribute has been removed assert_array_equals: lengths differ, expected array [Element node <input id="input1"></input>] length 1, got [Element node <input id="input1"></input>, Element node <input id="input3" disabled=""></input>] length 2
FAIL The :read-only pseudo-class must not match input elements after the disabled attribute has been removed assert_array_equals: lengths differ, expected array [Element node <input id="input2" readonly=""></input>, Element node <input id="input3" disabled=""></input>, Element node <input id="input4" type="checkbox"></input>, Element node <input id="input5" type="checkbox" readonly=""></input>] length 4, got [Element node <input id="input2" readonly=""></input>] length 1
PASS The :read-write pseudo-class must match textarea elements that do not have a readonly attribute, and that are not disabled
PASS The :read-only pseudo-class must match textarea elements that have a readonly attribute, or that are disabled
PASS The :read-write pseudo-class must match textarea elements after the readonly attribute has been added
PASS The :read-only pseudo-class must match textarea elements after the readonly attribute has been added
FAIL The :read-write pseudo-class must not match textarea elements that are disabled assert_array_equals: lengths differ, expected array [Element node <textarea id="textarea3">textarea3</textarea>] length 1, got [Element node <textarea id="textarea3">textarea3</textarea>, Element node <textarea disabled="" id="textarea4">textarea4</textarea>] length 2
FAIL The :read-only pseudo-class must match textarea elements that are disabled assert_array_equals: lengths differ, expected array [Element node <textarea disabled="" id="textarea4">textarea4</textarea>] length 1, got [] length 0
PASS The :read-write pseudo-class must match elements that are editable
PASS The :read-only pseudo-class must not match elements that are editable
FAIL The :read-write pseudo-class must match elements that are editing hosts assert_array_equals: lengths differ, expected array [Element node <p id="p1">paragraph1.</p>, Element node <p id="p2" contenteditable="">paragraph2.</p>] length 2, got [Element node <p id="p2" contenteditable="">paragraph2.</p>] length 1
FAIL The :read-only pseudo-class must not match elements that are editing hosts assert_array_equals: lengths differ, expected array [] length 0, got [Element node <p id="p1">paragraph1.</p>] length 1
Harness: the test ran to completion.