diff options
Diffstat (limited to '')
-rw-r--r-- | devtools/client/webconsole/test/browser/test-batching.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/devtools/client/webconsole/test/browser/test-batching.html b/devtools/client/webconsole/test/browser/test-batching.html new file mode 100644 index 0000000000..8d5c9e1244 --- /dev/null +++ b/devtools/client/webconsole/test/browser/test-batching.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Webconsole batch console calls test page</title> + </head> + <body> + <p>batch console calls test page</p> + <script> + /* exported batchLog, batchLogAndClear */ + "use strict"; + + function batchLog(numMessages = 0) { + for (let i = 0; i < numMessages; i++) { + console.log(i); + } + } + + function batchLogAndClear(numMessages = 0) { + for (let i = 0; i < numMessages; i++) { + console.log(i); + if (i === numMessages - 1) { + console.clear(); + } + } + } + </script> + </body> +</html> |