blob: 6e717ce41f1323c4924f7a707af00259df9f9f11 [file] [log] [blame]
Tests that a page calling URL.createObjectURL() can use the page cache.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS img.width is 0
PASS img.height is 0
img.src = blobURL
pageshow - not from cache
PASS Image loaded
PASS img.width is 76
PASS img.height is 103
pagehide - entering cache
pageshow - from cache
PASS Page did enter and was restored from the page cache
Reuse the previous blobURL
img2.src = blobURL
PASS Image2 loaded
PASS img2.width is 76
PASS img2.height is 103
PASS successfullyParsed is true
TEST COMPLETE