summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/markup/test/doc_markup_events_react_development_15.4.1.html
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/inspector/markup/test/doc_markup_events_react_development_15.4.1.html')
-rw-r--r--devtools/client/inspector/markup/test/doc_markup_events_react_development_15.4.1.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/devtools/client/inspector/markup/test/doc_markup_events_react_development_15.4.1.html b/devtools/client/inspector/markup/test/doc_markup_events_react_development_15.4.1.html
new file mode 100644
index 0000000000..e467b9baa0
--- /dev/null
+++ b/devtools/client/inspector/markup/test/doc_markup_events_react_development_15.4.1.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+
+ <script src="lib_react_with_addons_15.4.1.js"></script>
+ <script src="lib_react_dom_15.4.1.js"></script>
+ <script src="react_external_listeners.js"></script>
+ </head>
+ <body>
+ <h1>doc_markup_events_react_development_15.4.1.html</h1>
+
+ <div id="container"></div>
+
+ <script>
+ "use strict";
+
+ /* global React, ReactDOM, externalCapturingFunction, externalFunction */
+
+ var ClickMe2 = React.createClass({
+ // eslint-disable-next-line object-shorthand
+ inlineFunction: function () {
+ alert("inlineFunction");
+ },
+
+ render() {
+ return React.createElement(
+ "div",
+ null,
+ React.createElement(
+ "h3",
+ {
+ id: "inline",
+ onClick: this.inlineFunction
+ },
+ "Click for inlineFunction"
+ ),
+ React.createElement(
+ "h3",
+ {
+ id: "external",
+ onClick: externalFunction
+ },
+ "Click for externalFunction"
+ ),
+ React.createElement(
+ "h3",
+ {
+ id: "externalinline",
+ onClick: externalFunction,
+ onMouseUp: this.inlineFunction
+ },
+ "Click for both"
+ ),
+ React.createElement(
+ "h3",
+ {
+ id: "externalcapturing",
+ onClickCapture: externalCapturingFunction
+ },
+ "Click for externalCapturingFunction"
+ )
+ );
+ }
+ });
+
+ ReactDOM.render(
+ React.createElement(ClickMe2),
+ document.getElementById("container")
+ );
+ </script>
+ </body>
+</html>