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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/shadowroot-clonenode.html

Issue 1831753002: Make ShadowRoot.cloneNode() throw NotSupportedError, instead of DataCloneError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update expectation Created 4 years, 9 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
1 <!DOCTYPE> 1 <!DOCTYPE>
2 <html> 2 <html>
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 4
5 <pre id="console"></pre> 5 <pre id="console"></pre>
6 6
7 <script> 7 <script>
8 description('Calling ShadowRoot.cloneNode() should throw a DataCloneError except ion.'); 8 description('Calling ShadowRoot.cloneNode() should throw a NotSupportedError exc eption.');
9 9
10 var host = document.createElement('div'); 10 var host = document.createElement('div');
11 var shadowRoot = host.createShadowRoot(); 11 var shadowRoot = host.createShadowRoot();
12 shouldThrow('shadowRoot.cloneNode()', '"DataCloneError: Failed to execute \'clon eNode\' on \'ShadowRoot\': ShadowRoot nodes are not clonable."'); 12 shouldThrow('shadowRoot.cloneNode()', '"NotSupportedError: Failed to execute \'c loneNode\' on \'ShadowRoot\': ShadowRoot nodes are not clonable."');
13 </script> 13 </script>
14 </html> 14 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698