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

Side by Side Diff: sky/tests/inspector/dom-mutation.html

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/tests/http/conf/mime.types ('k') | sky/tests/inspector/dom-mutation.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <link rel="import" href="../resources/chai.html" />
3 <link rel="import" href="inspector/backend/dom-agent.html" as="DOMAgent" />
4 <div><div></div></div>
5 <script>
6 // setTimeout to flush pending DOM modifications and measure
7 // only the changes we want to.
8 var expectedMessages = [
9 'DOM.childNodeRemoved',
10 'DOM.childNodeInserted',
11 ];
12 var actualMessages = [];
13
14 setTimeout(function() {
15 var delegate = {
16 sendMessage: function(message, params) {
17 actualMessages.push(message);
18 }
19 };
20
21 var domAgent = new DOMAgent(delegate);
22 domAgent.enable();
23
24 var adding = document.createElement('adding');
25 var container = document.querySelector('div');
26 container.firstChild.remove();
27 container.appendChild(document.createElement('adding'));
28
29 setTimeout(function() {
30 assert.equal(JSON.stringify(expectedMessages),
31 JSON.stringify(actualMessages));
32 internals.notifyTestComplete("Done!");
33 });
34 });
35 </script>
36
37 </html>
OLDNEW
« no previous file with comments | « sky/tests/http/conf/mime.types ('k') | sky/tests/inspector/dom-mutation.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698