blob: 24e940813a5e4566ef31badc61c016af6f6ae4cd (
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
|
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script>
var foo = 123
var test = function()
{
// We need to initialize sources panel so that watch expressions section is created.
WebInspector.showPanel("sources");
var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExpressions;
watchExpressionsPane.expand();
var watchExpressionsSection = watchExpressionsPane.section;
watchExpressionsSection.watchExpressions = [];
watchExpressionsSection.watchExpressions.push("#$%");
watchExpressionsSection.update();
InspectorTest.runAfterPendingDispatches(step1);
function step1()
{
InspectorTest.addResult(watchExpressionsSection.element.textContent.indexOf("<not available>") !== -1 ? "SUCCESS" : "FAILED");
// Clear watch expressions after execution.
watchExpressionsSection.watchExpressions = [];
watchExpressionsSection.update();
InspectorTest.completeTest();
}
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that watches pane renders errors in red.
</p>
</body>
</html>
|