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

Side by Side Diff: sky/tests/mutation-observer/observe-exceptions.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, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <link rel="import" href="../resources/chai.html" />
3 <link rel="import" href="../resources/mocha.html" />
4 <script>
5 describe('MutationObserver observe', function() {
6 it('should throw on invalid input', function() {
7 var div = document.createElement('div');
8 var observer = new MutationObserver(function(mutations) { });
9 assert.throw(function() {
10 observer.observe();
11 });
12 assert.throw(function() {
13 observer.observe(null);
14 });
15 assert.throw(function() {
16 observer.observe(undefined)
17 });
18 assert.throw(function() {
19 observer.observe(div);
20 });
21 assert.throw(function() {
22 observer.observe(div, null);
23 });
24 assert.throw(function() {
25 observer.observe(div, undefined);
26 });
27 assert.throw(function() {
28 observer.observe(null, {attributes: true});
29 });
30 assert.throw(function() {
31 observer.observe(undefined, {attributes: true});
32 });
33 assert.throw(function() {
34 observer.observe(div, {subtree: true});
35 });
36 assert.throw(function() {
37 observer.observe(div, {attributes: false, attributeOldValue: true});
38 });
39 assert.throw(function() {
40 observer.observe(div, {attributes: false, attributeFilter: ["id"]});
41 });
42 assert.throw(function() {
43 observer.observe(div, {attributes: false, attributeOldValue: false});
44 });
45 assert.throw(function() {
46 observer.observe(div, {characterData: false, characterDataOldValue: true}) ;
47 });
48 assert.throw(function() {
49 observer.observe(div, {characterData: false, characterDataOldValue: false} );
50 });
51 });
52 });
53 </script>
54 </html>
OLDNEW
« no previous file with comments | « sky/tests/mutation-observer/observe-childList.sky ('k') | sky/tests/mutation-observer/observe-exceptions.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698