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

Unified Diff: sky/tests/mutation-observer/clear-transient-without-delivery.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/clear-transient-without-delivery.html
diff --git a/sky/tests/mutation-observer/clear-transient-without-delivery.html b/sky/tests/mutation-observer/clear-transient-without-delivery.html
deleted file mode 100644
index ebe30d934a8ea1db50b181a1ff9fb52b04574ce5..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/clear-transient-without-delivery.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<script>
-describe('Transient registrations', function() {
- it('should be cleared even without delivery', function(done) {
- var mutationsDelivered = false;
- var observer = new MutationObserver(function(mutations) {
- mutationsDelivered = true;
- });
- var div = document.createElement('div');
- var span = div.appendChild(document.createElement('span'));
- observer.observe(div, {attributes: true, subtree: true});
- div.removeChild(span);
- setTimeout(function() {
- // By the time this function runs the transient registration should
- // be cleared, so we expect not to be notified of this attribute
- // mutation.
- span.setAttribute('bar', 'baz');
- setTimeout(function() {
- assert.notOk(mutationsDelivered);
- done();
- }, 0);
- }, 0);
- });
-});
-</script>
-</html>
« no previous file with comments | « sky/tests/mutation-observer/callback-arguments.sky ('k') | sky/tests/mutation-observer/clear-transient-without-delivery.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698