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

Unified Diff: sky/tests/mutation-observer/mutation-record-nullity.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/mutation-record-nullity.html
diff --git a/sky/tests/mutation-observer/mutation-record-nullity.html b/sky/tests/mutation-observer/mutation-record-nullity.html
deleted file mode 100644
index a32e945954b069411da27ec26a86fe925252b046..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/mutation-record-nullity.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<script>
-describe('Non-relevant properties on mutation records should be null, except for NodeLists, which should be empty', function() {
-
- var observer = new MutationObserver(function() {});
-
- it('on characterData records', function() {
- var text = document.createTextNode('something');
- observer.observe(text, {characterData: true});
- text.data = 'something else';
- var record = observer.takeRecords()[0];
- assert.isNull(record.attributeName);
- assert.isNull(record.oldValue);
- assert.isNull(record.previousSibling);
- assert.isNull(record.nextSibling);
- assert.equal(record.addedNodes.length, 0);
- assert.equal(record.removedNodes.length, 0);
- });
- it('on childList records', function() {
- var div = document.createElement('div');
- observer.observe(div, {childList: true});
- div.appendChild(document.createElement('span'));
- record = observer.takeRecords()[0];
- assert.isNull(record.attributeName);
- assert.isNull(record.oldValue);
- });
- it('on attribute records', function() {
- var div = document.createElement('div');
- observer.observe(div, {attributes: true});
- div.setAttribute('data-foo', 'bar');
- record = observer.takeRecords()[0];
- assert.isNull(record.oldValue);
- assert.isNull(record.previousSibling);
- assert.isNull(record.nextSibling);
- assert.equal(record.addedNodes.length, 0);
- assert.equal(record.removedNodes.length, 0);
- });
-});
-</script>
-</html>
« no previous file with comments | « sky/tests/mutation-observer/mutation-record-constructor.sky ('k') | sky/tests/mutation-observer/mutation-record-nullity.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698