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

Unified 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: Removing static modifier from isMutationObserverSupported. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/html/src/Measurement.dart ('k') | lib/html/src/dartium_MutationObserverSupported.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/dart2js_MutationObserverSupported.dart
diff --git a/pkg/intl/example/basic/basic_example_runner.dart b/lib/html/src/dart2js_MutationObserverSupported.dart
similarity index 51%
copy from pkg/intl/example/basic/basic_example_runner.dart
copy to lib/html/src/dart2js_MutationObserverSupported.dart
index 004a5b286dc54401697cc3e6b92ac627594399e7..f7329073a696981376d34b9dbeadd0132765a700 100644
--- a/pkg/intl/example/basic/basic_example_runner.dart
+++ b/lib/html/src/dart2js_MutationObserverSupported.dart
@@ -3,12 +3,9 @@
// BSD-style license that can be found in the LICENSE file.
/**
- * This is just a shell that runs the code in basic_example.dart, leaving
- * that as a library that can also be run by tests.
+ * Checks to see if the mutation observer API is supported on the current
+ * platform.
*/
-
-#import('basic_example.dart');
-
-main() {
- setup(runProgram, print);
-}
+bool _isMutationObserverSupported() native '''
+ return !!( window.MutationObserver || window.WebKitMutationObserver);
+''';
« no previous file with comments | « lib/html/src/Measurement.dart ('k') | lib/html/src/dartium_MutationObserverSupported.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698