Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / exception-from-constructor.html
blobdecefa717bb8d310750d723f8893741daa80637f
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <body>
4 <script>
5 description('Tests throwing an exception during registration of constructor');
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 var proto = Object.create(HTMLElement.prototype, {
11 constructor: {
12 configurable: true,
13 get: function () { throw "Exception thrown from getter"; }
15 });
17 shouldThrow('document.registerElement("x-a", {prototype: proto})', '"Exception thrown from getter"');
18 </script>