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

Unified 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, 2 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/inspector/dom-mutation.html
diff --git a/sky/tests/inspector/dom-mutation.html b/sky/tests/inspector/dom-mutation.html
deleted file mode 100644
index 94350fbd50358e71c5fe6bd19a318b0c1e5a2457..0000000000000000000000000000000000000000
--- a/sky/tests/inspector/dom-mutation.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="inspector/backend/dom-agent.html" as="DOMAgent" />
-<div><div></div></div>
-<script>
-// setTimeout to flush pending DOM modifications and measure
-// only the changes we want to.
-var expectedMessages = [
- 'DOM.childNodeRemoved',
- 'DOM.childNodeInserted',
-];
-var actualMessages = [];
-
-setTimeout(function() {
- var delegate = {
- sendMessage: function(message, params) {
- actualMessages.push(message);
- }
- };
-
- var domAgent = new DOMAgent(delegate);
- domAgent.enable();
-
- var adding = document.createElement('adding');
- var container = document.querySelector('div');
- container.firstChild.remove();
- container.appendChild(document.createElement('adding'));
-
- setTimeout(function() {
- assert.equal(JSON.stringify(expectedMessages),
- JSON.stringify(actualMessages));
- internals.notifyTestComplete("Done!");
- });
-});
-</script>
-
-</html>
« 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