blob: ffc916d26625ab53720e4f14be0e636feede0c99 [file] [log] [blame]
Ensure beacons are attributed correctly.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS navigator.sendBeacon("../blink/sendbeacon/resources/save-beacon.py?name=cookie", "Blip"); is true
PASS Beacon sent successfully
PASS Content-Type: text/plain;charset=UTF-8
PASS Cookie: hello=world
PASS Origin: http://127.0.0.1:8000
PASS Referer: http://127.0.0.1:8000/app-privacy-report/app-attribution-beacon-isappinitiated.html
PASS Request-Method: POST
PASS Length: 4
PASS Body: Blip
PASS
PASS Successfully loaded only app-initiated beacon requests
PASS successfullyParsed is true
TEST COMPLETE