blob: cb4683f6879895975c4a6d7e53f69284bcc7e8e4 [file] [log] [blame]
This test checks the SVGStringList API - utilizing the requiredFeatures property of SVGRectElement
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Check initial requiredFeatures values
PASS rect.requiredFeatures.numberOfItems is 2
PASS rect.requiredFeatures.getItem(0) is "foo"
PASS rect.requiredFeatures.getItem(1) is "bar"
Check that getItem() does NOT return live strings, as the IDL defines the return types as plain DOMString
PASS firstItem = 'test' is "test"
PASS rect.requiredFeatures.numberOfItems is 2
PASS rect.requiredFeatures.getItem(0) is "foo"
PASS rect.requiredFeatures.getItem(1) is "bar"
PASS successfullyParsed is true
TEST COMPLETE