1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/test/bug570341_recordevents.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<html> 1.5 +<head> 1.6 +<script> 1.7 + var start = Date.now(); 1.8 + window._testing_js_start = Date.now(); 1.9 + window['_testing_js_after_' + document.readyState] = start; 1.10 + document.addEventListener('DOMContentLoaded', 1.11 + function () { 1.12 + window._testing_evt_DOMContentLoaded = Date.now(); 1.13 + }, true); 1.14 + document.addEventListener('readystatechange', function(){ 1.15 + window['_testing_evt_DOM_' + document.readyState] = Date.now(); 1.16 + }, true); 1.17 + function recordLoad() { 1.18 + window._testing_evt_load = Date.now(); 1.19 + } 1.20 +</script> 1.21 +</head> 1.22 +<body onload="recordLoad()">This document collects time 1.23 +for events related to the page load progress.</body> 1.24 +</html>