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> |