Skip to content

Commit

Permalink
Restricts examples test to VM due to file I/O (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsenft committed May 18, 2017
1 parent 4eb2b17 commit cf59331
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/samples_test.dart
@@ -1,11 +1,11 @@
@TestOn('vm')
library samples_test;

import 'dart:mirrors';
import 'dart:io';
import 'dart:mirrors';

import 'package:test/test.dart';
import 'package:csslib/parser.dart';
import 'package:csslib/src/messages.dart';
import 'testing.dart';

const testOptions = const PreprocessorOptions(
useColors: false,
Expand All @@ -16,7 +16,7 @@ const testOptions = const PreprocessorOptions(
void testCSSFile(File cssFile) {
final errors = <Message>[];
final css = cssFile.readAsStringSync();
final stylesheet = parseCss(css, errors: errors, opts: testOptions);
final stylesheet = parse(css, errors: errors, options: testOptions);

expect(stylesheet, isNotNull);
expect(errors, isEmpty, reason: errors.toString());
Expand Down

0 comments on commit cf59331

Please sign in to comment.