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

Side by Side Diff: sky/tests/mutation-observer/mutation-observer-constructor.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', function() {
6 var observer = new MutationObserver(function(mutations) { });
7
8 it('should have methods', function() {
9 assert.equal(typeof observer.observe, 'function');
10 assert.equal(typeof observer.disconnect, 'function');
11 });
12 it('should throw with incorrect constructor args', function() {
13 assert.throw(function() {
14 new MutationObserver({ handleEvent: function() {} });
15 }, TypeError);
16 assert.throw(function() {
17 new MutationObserver({});
18 }, TypeError);
19 assert.throw(function() {
20 new MutationObserver(42);
21 }, TypeError);
22 assert.throw(function() {
23 new MutationObserver("foo");
24 }, TypeError);
25 });
26 });
27 </script>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698