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

Unified Diff: sky/tests/mutation-observer/cross-document.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 side-by-side diff with in-line comments
Download patch
Index: sky/tests/mutation-observer/cross-document.sky
diff --git a/sky/tests/mutation-observer/cross-document.sky b/sky/tests/mutation-observer/cross-document.sky
deleted file mode 100644
index fdf93efc5338df26a8a1c45f9574d281991939b4..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/cross-document.sky
+++ /dev/null
@@ -1,49 +0,0 @@
-<html>
-<import src="../resources/chai.sky" />
-<import src="../resources/mocha.sky" />
-<script>
-describe('MutationObserver cross document moves', function() {
- it('should handle basic observation', function(done) {
- var mutations;
- var div = document.createElement('div');
- var observer = new MutationObserver(function(records) {
- mutations = records;
- });
-
- observer.observe(div, {attributes: true});
- var newDoc = new Document();
- newDoc.appendChild(div);
- div.id = 'foo';
- setTimeout(function() {
- assert.equal(mutations.length, 1);
- assert.equal(mutations[0].type, 'attributes');
- assert.equal(mutations[0].target, div);
- assert.equal(mutations[0].attributeName, 'id');
- observer.disconnect();
- done();
- }, 0);
- });
- it('should handle subtree observation', function(done) {
- var mutations;
- var div = document.createElement('div');
- var subDiv = div.appendChild(document.createElement('div'));
- var observer = new MutationObserver(function(records) {
- mutations = records;
- });
-
- observer.observe(div, {attributes: true, subtree: true});
- var newDoc = new Document();
- newDoc.appendChild(div);
- subDiv.id = 'foo';
- setTimeout(function() {
- assert.equal(mutations.length, 1);
- assert.equal(mutations[0].type, 'attributes');
- assert.equal(mutations[0].target, subDiv);
- assert.equal(mutations[0].attributeName, 'id');
- observer.disconnect();
- done();
- }, 0);
- });
-});
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698