blob: 4b75e5c31d14bd2a65a252cc2b8cfa9fe2259ec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<html>
<head>
<style>
body {
margin: 0;
}
#container {
width: 400px;
height: 400px;
background-color: grey;
}
#inspectedElement {
margin: 5px;
border: solid 10px aqua;
padding: 15px;
width: 200px;
height: 200px;
background-color: blue;
float: left;
}
#description {
clear: both;
}
</style>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/elements-test.js"></script>
<script>
function test()
{
function nodeSelected(node)
{
RuntimeAgent.evaluate("dumpInspectorHighlightRects()", InspectorTest.completeTest);
}
InspectorTest.selectNodeWithId("inspectedElement", nodeSelected);
}
</script>
</head>
<body onload="runTest()">
<div id="inspectedElement"></div>
<p id="description">This test verifies the position and size of the highlight rectangles overlayed on an inspected div.</p>
</body>
</html>
|