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

Side by Side Diff: LayoutTests/fast/dom/DOMException/stack-trace.html

Issue 1237623006: Post-Mutation Event checks must re-check document constraints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline. Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 4
5 if (typeof testRunner !== 'undefined') 5 if (typeof testRunner !== 'undefined')
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 // ES6 polyfill 8 // ES6 polyfill
9 if (!String.prototype.contains) { 9 if (!String.prototype.contains) {
10 String.prototype.contains = function(substring) { 10 String.prototype.contains = function(substring) {
(...skipping 17 matching lines...) Expand all
28 } catch (ex) { 28 } catch (ex) {
29 e = ex; 29 e = ex;
30 } 30 }
31 31
32 shouldBeTrue('"stack" in e'); 32 shouldBeTrue('"stack" in e');
33 shouldBeEqualToString('typeof e.stack', 'string'); 33 shouldBeEqualToString('typeof e.stack', 'string');
34 shouldBeTrue('e.stack.contains("innerFunction")'); 34 shouldBeTrue('e.stack.contains("innerFunction")');
35 shouldBeTrue('e.stack.contains("outerFunction")'); 35 shouldBeTrue('e.stack.contains("outerFunction")');
36 36
37 shouldBeEqualToString('Object.prototype.toString.call(e)', '[object DOMException ]'); 37 shouldBeEqualToString('Object.prototype.toString.call(e)', '[object DOMException ]');
38 shouldBeEqualToString("e.toString()", "HierarchyRequestError: Failed to execute 'appendChild' on 'Node': The new child element contains the parent."); 38 shouldBeEqualToString("e.toString()", "HierarchyRequestError: Failed to execute 'appendChild' on 'Node': Nodes of type '#document' may not be inserted inside no des of type '#document'.");
39 shouldBeEqualToString('e.name', 'HierarchyRequestError'); 39 shouldBeEqualToString('e.name', 'HierarchyRequestError');
40 shouldBeEqualToString("e.message", "Failed to execute 'appendChild' on 'Node': T he new child element contains the parent."); 40 shouldBeEqualToString("e.message", "Failed to execute 'appendChild' on 'Node': N odes of type '#document' may not be inserted inside nodes of type '#document'.") ;
41 shouldBe('e.code', '3'); 41 shouldBe('e.code', '3');
42 42
43 e.stack = 42; 43 e.stack = 42;
44 // Don't use shouldBe because the FAIL case still happens on JSC and we don't wa nt the output 44 // Don't use shouldBe because the FAIL case still happens on JSC and we don't wa nt the output
45 // to depend on the path. 45 // to depend on the path.
46 shouldBeTrue('e.stack === 42'); 46 shouldBeTrue('e.stack === 42');
47 47
48 </script> 48 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698