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

Unified Diff: sky/tests/mutation-observer/observer-wrapper-dropoff-transient.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/observer-wrapper-dropoff-transient.html
diff --git a/sky/tests/mutation-observer/observer-wrapper-dropoff-transient.html b/sky/tests/mutation-observer/observer-wrapper-dropoff-transient.html
deleted file mode 100644
index 91c5002c1a675d10a3180e7706b73dbc82ea5e59..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/observer-wrapper-dropoff-transient.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<script>
-describe('MutationObserver wrappers', function() {
- it('should survive GC for passing into the callback even if JS has lost references and the only remaining observations are transient.', function(done) {
- function addObserver(node, fn) {
- var observer = new MutationObserver(fn);
- observer.testProperty = true;
- observer.observe(node, {attributes:true, subtree: true});
- }
-
- var root = document.createElement('div');
- var child = root.appendChild(document.createElement('span'));
- addObserver(root, function(records, observer) {
- window.observer = observer;
- assert.ok(observer.testProperty);
- done();
- });
-
- root.removeChild(child);
- child.setAttribute('foo', 'bar');
- root = null;
-
- gc();
- });
-});
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698