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

Side by Side Diff: lib/html/src/dart2js_MutationObserverSupported.dart

Issue 10951016: Fixing up measurement test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding missing files. Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This is just a shell that runs the code in basic_example.dart, leaving 6 * Checks to see if the mutation observer API is supported on the current
7 * that as a library that can also be run by tests. 7 * platform.
8 */ 8 */
9 9 static bool _isMutationObserverSupported() native '''
vsm 2012/09/21 15:12:40 We should think of a better and user-accessible pa
blois 2012/09/21 17:00:03 Agree- generalizing a mechanism for checking wheth
10 #import('basic_example.dart'); 10 return !!( window.MutationObserver || window.WebKitMutationObserver);
11 11 ''';
12 main() {
13 setup(runProgram, print);
14 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698