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

Side by Side Diff: LayoutTests/fast/dom/shadow/suppress-mutation-events-in-shadow.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <body> 2 <body>
3 <input> 3 <input>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 description('Test that mutation events are not triggered in shadow DOM'); 6 description('Test that mutation events are not triggered in shadow DOM');
7 var mutationEventTriggered = false; 7 var mutationEventTriggered = false;
8 function doTest() { 8 function doTest() {
9 var input = document.querySelector('input'); 9 var input = document.querySelector('input');
10 var shadowRoot = internals.shadowRoot(input); 10 var shadowRoot = internals.shadowRoot(input);
11 var firstChild = shadowRoot.firstChild; 11 var firstChild = shadowRoot.firstChild;
12 firstChild.addEventListener('DOMNodeInserted', function(evt) { 12 firstChild.addEventListener('DOMNodeInserted', function(evt) {
13 mutationEventTriggered = true; 13 mutationEventTriggered = true;
14 }); 14 });
15 input.value = 'hello'; 15 input.value = 'hello';
16 shouldBeFalse('mutationEventTriggered'); 16 shouldBeFalse('mutationEventTriggered');
17 } 17 }
18 18
19 if (window.internals) 19 if (window.internals)
20 doTest(); 20 doTest();
21 else 21 else
22 testFailed('This test only runs in DRT'); 22 testFailed('This test only runs in DRT');
23 </script> 23 </script>
24 </body> 24 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/style-with-hat.html ('k') | LayoutTests/fast/dom/shadow/tab-order-iframe-and-shadow.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698