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

Unified Diff: sky/tests/mutation-observer/disconnect-cancel-pending.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/disconnect-cancel-pending.html
diff --git a/sky/tests/mutation-observer/disconnect-cancel-pending.html b/sky/tests/mutation-observer/disconnect-cancel-pending.html
deleted file mode 100644
index f35101f48f35472157ec79e92f9717ebe3de9855..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/disconnect-cancel-pending.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<script>
-describe('MutationObserver.disconnect', function() {
- it('should cancel pending delivery', function(done) {
- var mutations;
- var observer;
- var div;
-
- function start() {
- mutations = null;
- div = document.createElement('div');
-
- observer = new MutationObserver(function(m) {
- mutations = m;
- });
-
- observer.observe(div, { attributes: true });
- div.setAttribute('foo', 'bar');
- observer.disconnect();
- setTimeout(next, 0);
- }
-
- function next() {
- // Disconnecting should cancel any pending delivery...
- assert.equal(mutations, null);
- observer.observe(div, { attributes: true });
- div.setAttribute('bar', 'baz');
- setTimeout(finish, 0);
- }
-
- function finish() {
- // ...and re-observing should not see any of the previously-generated records.
- assert.equal(mutations.length, 1);
- assert.equal(mutations[0].attributeName, "bar");
- done();
- }
-
- start();
- });
-});
-</script>
-</html>
« no previous file with comments | « sky/tests/mutation-observer/delivery-order.sky ('k') | sky/tests/mutation-observer/disconnect-cancel-pending.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698