| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function clickHandler(errors, warnings) | 2 function clickHandler(errors, warnings) |
| 3 { | 3 { |
| 4 return function() | 4 return function() |
| 5 { | 5 { |
| 6 for (var i = 0; i < errors; ++i) | 6 for (var i = 0; i < errors; ++i) |
| 7 console.error("Error " + (i + 1)); | 7 console.error("Error " + (i + 1)); |
| 8 for (var i = 0; i < warnings; ++i) | 8 for (var i = 0; i < warnings; ++i) |
| 9 console.warn("Warning " + (i + 1)); | 9 console.warn("Warning " + (i + 1)); |
| 10 } | 10 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 </script> | 51 </script> |
| 52 <body onload="loaded()"> | 52 <body onload="loaded()"> |
| 53 <p>To begin test, open DevTools and click one of the buttons below. You should | 53 <p>To begin test, open DevTools and click one of the buttons below. You should |
| 54 see an error and/or warning count in the Inspector's status bar. Clicking on | 54 see an error and/or warning count in the Inspector's status bar. Clicking on |
| 55 the error/warning count should open the Console. Hovering over the | 55 the error/warning count should open the Console. Hovering over the |
| 56 error/warning count should show you a tooltip that matches the text in the | 56 error/warning count should show you a tooltip that matches the text in the |
| 57 button you clicked.</p> | 57 button you clicked.</p> |
| 58 <p>Note: You must reload the page between each button press.</p> | 58 <p>Note: You must reload the page between each button press.</p> |
| OLD | NEW |