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

Side by Side Diff: sky/tests/mutation-observer/observe-exceptions.sky

Issue 920343002: Delete Sky tests that we're not going to run with Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <import src="../resources/chai.sky" />
3 <import src="../resources/mocha.sky" />
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

Powered by Google App Engine
This is Rietveld 408576698