diff options
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/sourcemaps2/main.js')
-rw-r--r-- | devtools/client/debugger/test/mochitest/examples/sourcemaps2/main.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps2/main.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps2/main.js new file mode 100644 index 0000000000..23fb2fabf1 --- /dev/null +++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps2/main.js @@ -0,0 +1,15 @@ +var message = document.getElementById('message'); + +function logMessage() { + console.log('message is: ' + message.value); +} + +message.addEventListener('focus', function() { + message.value = ''; +}, false); + +var logMessageButton = document.getElementById('log-message'); + +logMessageButton.addEventListener('click', function() { + logMessage(); +}, false); |