blob: f2b3e81d9dab0d952d8865db3801e9f6c2a51ffb (
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
|
// Debugger.Source.prototype
load(libdir + 'asserts.js');
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.text.call(42)
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.text.call({})
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.text.call(Debugger.Source.prototype)
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.element.call(42)
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.element.call({})
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.element.call(Debugger.Source.prototype)
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.elementAttributeName.call(42)
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.elementAttributeName.call({})
}, TypeError);
assertThrowsInstanceOf(function () {
Debugger.Source.prototype.elementAttributeName.call(Debugger.Source.prototype)
}, TypeError);
|