OLD | NEW |
1 /** | 1 /** |
2 * Tests attribute parsing and handling of whitespace in attribute values. | 2 * Tests attribute parsing and handling of whitespace in attribute values. |
3 * | 3 * |
4 * @param type Name of the type being tested (only for test output) | 4 * @param type Name of the type being tested (only for test output) |
5 * @param target The element that should be tested | 5 * @param target The element that should be tested |
6 * @param attribute The name of the attribute that should be tested | 6 * @param attribute The name of the attribute that should be tested |
7 * @param expected The fallback/default value that is the expectation for invali
d values | 7 * @param expected The fallback/default value that is the expectation for invali
d values |
8 * @param whitespace An array of strings that are valid whitespace characters | 8 * @param whitespace An array of strings that are valid whitespace characters |
9 * @param valid An array of strings containing valid attribute values | 9 * @param valid An array of strings containing valid attribute values |
10 * @param invalid An array of strings containing invalid attribute values | 10 * @param invalid An array of strings containing invalid attribute values |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 assert_invalid_custom(target, expected); | 83 assert_invalid_custom(target, expected); |
84 } | 84 } |
85 finally { | 85 finally { |
86 target.removeAttribute(attribute); | 86 target.removeAttribute(attribute); |
87 } | 87 } |
88 }, "Test " + type + " trailing garbage, value: " + escapedValueS
tr); | 88 }, "Test " + type + " trailing garbage, value: " + escapedValueS
tr); |
89 }); | 89 }); |
90 }); | 90 }); |
91 }); | 91 }); |
92 } | 92 } |
OLD | NEW |