3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
8 window
.internals
.setFocused(false);
14 log("================");
15 log("value of foo:" + document
.getElementById("foo").value
);
16 log("value of bar:" + document
.getElementById("bar").value
);
17 log("value of baz:" + document
.getElementById("baz").value
);
18 window
.internals
.setFocused(true);
27 InspectorTest
.evaluateInPage("dump()", InspectorTest
.completeTest
.bind(InspectorTest
));
31 for (var i
= 0; i
< text
.length
; ++i
) {
32 var dec
= text
.charCodeAt(i
);
33 var hex
= "U+00" + Number(dec
).toString(16);
34 InspectorTest
.sendCommand("Input.dispatchKeyEvent", {
36 "windowsVirtualKeyCode": dec
,
39 InspectorTest
.sendCommand("Input.dispatchKeyEvent", {
42 "unmodifiedText": text
[i
]
44 InspectorTest
.sendCommand("Input.dispatchKeyEvent", {
46 "windowsVirtualKeyCode": dec
,
54 InspectorTest
.sendCommand("Input.dispatchKeyEvent", {
56 "windowsVirtualKeyCode": 9,
57 "keyIdentifier": "U+0009"
59 InspectorTest
.sendCommand("Input.dispatchKeyEvent", {
62 InspectorTest
.sendCommand("Input.dispatchKeyEvent", {
64 "windowsVirtualKeyCode": 9,
65 "keyIdentifier": "U+0009"
72 <body onload=
"load()">
74 <input onfocus=
"log('focus foo')" onblur=
"log('blur foo')" id=
"foo" autofocus
>
75 <input onfocus=
"log('focus bar')" onblur=
"log('blur bar')" id=
"bar">
76 <input onfocus=
"log('focus baz')" onblur=
"log('blur baz')" id=
"baz">