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

Unified Diff: sky/tests/mutation-observer/observe-options-attributes.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
Index: sky/tests/mutation-observer/observe-options-attributes.html
diff --git a/sky/tests/mutation-observer/observe-options-attributes.html b/sky/tests/mutation-observer/observe-options-attributes.html
deleted file mode 100644
index d3b884ab686d36543d15f0557cc01ec246dc75a7..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/observe-options-attributes.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<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', '1');
- 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', '1');
- 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', '2');
- var records = observer.takeRecords();
- assert.equal(records.length, 1);
- assert.isNull(records[0].oldValue);
- observer.disconnect();
- });
-});
-</script>
-</html>
« no previous file with comments | « sky/tests/mutation-observer/observe-exceptions.sky ('k') | sky/tests/mutation-observer/observe-options-attributes.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698