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

Unified Diff: sky/tests/mutation-observer/delivery-order.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
« no previous file with comments | « sky/tests/mutation-observer/cross-document.sky ('k') | sky/tests/mutation-observer/delivery-order.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/mutation-observer/delivery-order.html
diff --git a/sky/tests/mutation-observer/delivery-order.html b/sky/tests/mutation-observer/delivery-order.html
deleted file mode 100644
index 11be804e0dcf22bfda6a5553596adc826e6e06df..0000000000000000000000000000000000000000
--- a/sky/tests/mutation-observer/delivery-order.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<link rel="import" href="../resources/chai.html" />
-<link rel="import" href="../resources/mocha.html" />
-<script>
-describe('MutationObserver', function() {
- it('should deliver in order of creation', function(done) {
- var order = [];
- var observers = [];
-
- function setUpOrdering(num) {
- observers.push(new MutationObserver(function(mutations) {
- order.push(num);
- }));
- }
-
- for (var i = 0; i < 10; ++i)
- setUpOrdering(i);
-
- var div = document.createElement('div');
- observers[3].observe(div, {attributes: true});
- observers[2].observe(div, {characterData: true, subtree: true});
- observers[1].observe(div, {attributes: true});
- observers[7].observe(div, {childList: true});
- observers[4].observe(div, {attributes: true});
- observers[9].observe(div, {attributes: true});
- observers[0].observe(div, {childList: true});
- observers[5].observe(div, {attributes: true});
- observers[6].observe(div, {characterData: true, subtree: true});
- observers[8].observe(div, {attributes: true});
- div.setAttribute('foo', 'bar');
- div.appendChild(document.createTextNode('hello'));
- div.firstChild.textContent = 'goodbye';
- setTimeout(function() {
- assert.deepEqual(order, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
- done();
- }, 0);
- });
-});
-</script>
-</html>
« no previous file with comments | « sky/tests/mutation-observer/cross-document.sky ('k') | sky/tests/mutation-observer/delivery-order.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698