blob: 6f086edccb8d8b150f941643d0aad4302fbea43c [file] [log] [blame]
This test verify dragging an image in the page keeps its attributes. To test manually, drag the image and drop it in the rect with a blue border.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS target.getElementsByTagName("img").length is 1
PASS target.getElementsByTagName("img")[0].attributes.length is 5
PASS target.getElementsByTagName("img")[0].id is "source"
PASS target.getElementsByTagName("img")[0].alt is "alt-text"
PASS target.getElementsByTagName("img")[0].attributes["itemprop"].value is "somedata"
PASS target.getElementsByTagName("img")[0].attributes["arbitrary"].value is "green"
PASS successfullyParsed is true
TEST COMPLETE