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

Unified Diff: sky/tests/mutation-observer/observe-exceptions.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-exceptions.html
diff --git a/sky/tests/mutation-observer/observe-exceptions.html b/sky/tests/mutation-observer/observe-exceptions.html
deleted file mode 100644
index 67aef9f5be2933b4111bad1668542eed898711ca..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/observe-exceptions.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<script>
-describe('MutationObserver observe', function() {
- it('should throw on invalid input', function() {
- var div = document.createElement('div');
- var observer = new MutationObserver(function(mutations) { });
- assert.throw(function() {
- observer.observe();
- });
- assert.throw(function() {
- observer.observe(null);
- });
- assert.throw(function() {
- observer.observe(undefined)
- });
- assert.throw(function() {
- observer.observe(div);
- });
- assert.throw(function() {
- observer.observe(div, null);
- });
- assert.throw(function() {
- observer.observe(div, undefined);
- });
- assert.throw(function() {
- observer.observe(null, {attributes: true});
- });
- assert.throw(function() {
- observer.observe(undefined, {attributes: true});
- });
- assert.throw(function() {
- observer.observe(div, {subtree: true});
- });
- assert.throw(function() {
- observer.observe(div, {attributes: false, attributeOldValue: true});
- });
- assert.throw(function() {
- observer.observe(div, {attributes: false, attributeFilter: ["id"]});
- });
- assert.throw(function() {
- observer.observe(div, {attributes: false, attributeOldValue: false});
- });
- assert.throw(function() {
- observer.observe(div, {characterData: false, characterDataOldValue: true});
- });
- assert.throw(function() {
- observer.observe(div, {characterData: false, characterDataOldValue: false});
- });
- });
-});
-</script>
-</html>
« no previous file with comments | « sky/tests/mutation-observer/observe-childList.sky ('k') | sky/tests/mutation-observer/observe-exceptions.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698