blob: 723ce36cf3191b9c15161434f9bfbfca2858e32d [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-isnotappinitiated.html
PASS Request-Method: POST
PASS Length: 4
PASS Body: Blip
PASS
PASS Successfully loaded only non-app-initiated beacon requests
PASS successfullyParsed is true
TEST COMPLETE