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

Unified Diff: sky/tests/mutation-observer/script-append.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/script-append.html
diff --git a/sky/tests/mutation-observer/script-append.html b/sky/tests/mutation-observer/script-append.html
deleted file mode 100644
index aa9659732476bf17d4566979549d329a1a41eb61..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/script-append.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<script>
-describe('MutationObserver', function() {
- it('should not invoke callbacks when appending a script', function() {
- var mutationsDelivered = false;
- function callback(mutations) {
- mutationsDelivered = true;
- }
-
- var observer = new MutationObserver(callback);
- var div = document.createElement('div');
- observer.observe(div, {attributes: true});
- div.setAttribute('foo', 'bar');
- assert.notOk(mutationsDelivered);
- var scriptDidRun = false;
- var script = document.createElement('script');
- script.textContent = 'scriptDidRun = true';
- assert.notOk(scriptDidRun);
- document.documentElement.appendChild(script);
- assert.notOk(scriptDidRun);
- assert.notOk(mutationsDelivered);
- });
-});
-</script>
-</html>
« no previous file with comments | « sky/tests/mutation-observer/observer-wrapper-dropoff-transient.sky ('k') | sky/tests/mutation-observer/script-append.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698