3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/timeline-test.js"></script>
7 function original() { }
9 function performActions()
11 var b
= document
.getElementById("btn");
12 var foo
= original
.bind();
19 InspectorTest
.evaluateWithTimeline("performActions()", finish
);
23 function formatter(record
)
25 if (record
.type() === "FunctionCall") {
26 var data
= record
.traceEvent().args
["data"];
27 var scriptName
= data
.scriptName
;
28 var scriptNameShort
= scriptName
.substring(scriptName
.lastIndexOf("/") + 1);
29 if (scriptNameShort
!== "InjectedScript")
30 InspectorTest
.addResult(record
.type() + " " + scriptNameShort
+ ":" + data
.scriptLine
);
33 InspectorTest
.printTimelineRecords(null, formatter
);
34 InspectorTest
.completeTest();
41 <body onload=
"runTest()">
43 Tests extracting information about original functions from bound ones
45 <button id=
"btn"></button>