diff options
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/sourcemaps-indexed/main.js')
-rw-r--r-- | devtools/client/debugger/test/mochitest/examples/sourcemaps-indexed/main.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps-indexed/main.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps-indexed/main.js new file mode 100644 index 0000000000..23fb2fabf1 --- /dev/null +++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps-indexed/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); |