michael@0: // Debugger.Source.prototype michael@0: michael@0: load(libdir + 'asserts.js'); michael@0: michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.text.call(42) michael@0: }, TypeError); michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.text.call({}) michael@0: }, TypeError); michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.text.call(Debugger.Source.prototype) michael@0: }, TypeError); michael@0: michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.element.call(42) michael@0: }, TypeError); michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.element.call({}) michael@0: }, TypeError); michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.element.call(Debugger.Source.prototype) michael@0: }, TypeError); michael@0: michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.elementAttributeName.call(42) michael@0: }, TypeError); michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.elementAttributeName.call({}) michael@0: }, TypeError); michael@0: assertThrowsInstanceOf(function () { michael@0: Debugger.Source.prototype.elementAttributeName.call(Debugger.Source.prototype) michael@0: }, TypeError);