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

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

Issue 920343002: Delete Sky tests that we're not going to run with Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 <html>
2 <import src="../resources/chai.sky" />
3 <import src="/sky/framework/inspector/dom-agent.sky" 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 </html>
OLDNEW
« no previous file with comments | « sky/tests/inspector/css-computed-style-expected.txt ('k') | sky/tests/inspector/dom-mutation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698