Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(990)

Side by Side Diff: LayoutTests/fast/dom/custom/exception-from-constructor.html

Issue 1097243002: [Reland] Implement Custom Element's class side inheritance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Nits Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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');
6
7 if (window.testRunner)
8 testRunner.dumpAsText();
9
10 var proto = Object.create(HTMLElement.prototype, {
11 constructor: {
12 configurable: true,
13 get: function () { throw "Exception thrown from getter"; }
14 }
15 });
16
17 shouldThrow('document.registerElement("x-a", {prototype: proto})', '"Exception t hrown from getter"');
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698