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

Unified Diff: sky/tests/mutation-observer/observe-options-attributes.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/observe-options-attributes.sky
diff --git a/sky/tests/mutation-observer/observe-options-attributes.sky b/sky/tests/mutation-observer/observe-options-attributes.sky
deleted file mode 100644
index db1f22bfda88f228d6a0a315a16c2b7f279cc0eb..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/observe-options-attributes.sky
+++ /dev/null
@@ -1,34 +0,0 @@
-<html>
-<import src="../resources/chai.sky" />
-<import src="../resources/mocha.sky" />
-<script>
-describe('MutationObserver.observe', function() {
- it('should observe attributes', function() {
- var observer = new MutationObserver(function() {});
- var element = document.createElement('div');
- element.setAttribute('data-test', '1');
-
- observer.observe(element, {attributeOldValue: true});
- element.setAttribute('data-test', '2');
- var records = observer.takeRecords();
- assert.equal(records.length, 1);
- assert.equal(records[0].oldValue, 1);
- observer.disconnect();
-
- observer.observe(element, {attributeOldValue: false});
- element.setAttribute('data-test', '3');
- var records = observer.takeRecords();
- assert.equal(records.length, 1);
- assert.isNull(records[0].oldValue);
- observer.disconnect();
-
- observer.observe(element, {attributeFilter: ['data-test']});
- element.setAttribute('data-test', '4');
- var records = observer.takeRecords();
- assert.equal(records.length, 1);
- assert.isNull(records[0].oldValue);
- observer.disconnect();
- });
-});
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698