Home | History | Annotate | Download | only in webkit

Lines Matching full:shouldbe

43 shouldBe('Object.getPrototypeOf(new Base)', 'Base.prototype');
45 shouldBe('Object.getPrototypeOf(new Derived)', 'Derived.prototype');
46 shouldBe('Object.getPrototypeOf(Derived.prototype)', 'Base.prototype');
47 shouldBe('(new Derived).baseMethod()', '"base"');
48 shouldBe('(new Derived).overridenMethod()', '"derived"');
49 shouldBe('Derived.staticBaseMethod()', '"base"');
50 shouldBe('Derived.staticOverridenMethod()', '"derived"');
57 shouldBe('x.__proto__', 'Base');
58 shouldBe('Object.getPrototypeOf(x)', 'Base');
59 shouldBe('x.prototype.__proto__', 'Base.prototype');
60 shouldBe('Object.getPrototypeOf(x.prototype)', 'Base.prototype');
61 shouldBe('x = class extends null { constructor() { } }; x.__proto__', 'Function.prototype');
62 shouldBe('x.__proto__', 'Function.prototype');
75 shouldBe('x = 1; try { c = class extends (++x) { constructor() { } } } catch (e) { }; x', '2');
76 shouldBe('x = 1; try { c = class extends (x++) { constructor() { } } } catch (e) { }; x', '2');
92 shouldBe('x = 1; namespace = {}; namespace.A = class { constructor() { } }; try { namespace.B = class extends (x++, namespace.A) { constructor() { } } } catch (e) { } x', '2');
93 shouldBe('x = 1; namespace = {}; namespace.A = class { constructor() { } }; try { namespace.B = class extends (namespace.A, x++) { constructor() { } } } catch (e) { } x', '2');
95 shouldBe('Object.getPrototypeOf((class { constructor () { } }).prototype)', 'Object.prototype');
96 shouldBe('Object.getPrototypeOf((class extends null { constructor () { super(); } }).prototype)', 'null');
104 shouldBe('x = {}; new (class extends null { constructor () { return x } })', 'x');
107 shouldBe('x = null; Object.getPrototypeOf((class extends x { }).prototype)', 'null');