@TestOn('browser')
library angular2.test.symbol_inspector.symbol_inspector_test;

import 'dart:mirrors';

import 'symbol_inspector.dart';
import 'simple_library.dart';

import 'package:test/test.dart';

main() {
  group('getSymbolsFromLibrary', () {
    test('should extract symbols', () {
      var simpleLib = reflectClass(A).owner as LibraryMirror;
      var symbols = getSymbolsFromLibrary(simpleLib);
      expect(symbols, [
        'A',
        'ClosureParam',
        'ClosureReturn',
        'ConsParamType',
        'FieldType',
        'Generic',
        'GetterType',
        'MethodReturnType',
        'ParamType',
        'SomeInterface',
        'StaticFieldType',
        'TypedefParam',
        'TypedefReturnType'
      ]);
    });
  });
  group('ng2libs', () {
    test('should be available via mirrors', () {
      expect(commonLib.uri.toString(), 'package:angular2/common.dart');
      expect(compilerLib.uri.toString(), 'package:angular2/compiler.dart');
      expect(coreLib.uri.toString(), 'package:angular2/core.dart');
      expect(instrumentationLib.uri.toString(),
          'package:angular2/instrumentation.dart');
      expect(platformBrowserLib.uri.toString(),
          'package:angular2/platform/browser.dart');
      expect(platformCommonLib.uri.toString(),
          'package:angular2/platform/common.dart');
    });
  });
}

@TestOn('browser && !js')
library angular2.test.symbol_inspector.symbol_inspector_test;

import 'dart:mirrors';

import 'symbol_inspector.dart';
import 'simple_library.dart';

import 'package:test/test.dart';

main() {
  group('getSymbolsFromLibrary', () {
    test('should extract symbols', () {
      var simpleLib = reflectClass(A).owner as LibraryMirror;
      var symbols = getSymbolsFromLibrary(simpleLib);
      expect(symbols, [
        'A',
        'ClosureParam',
        'ClosureReturn',
        'ConsParamType',
        'FieldType',
        'Generic',
        'GetterType',
        'MethodReturnType',
        'ParamType',
        'SomeInterface',
        'StaticFieldType',
        'TypedefParam',
        'TypedefReturnType'
      ]);
    });
  });
  group('ng2libs', () {
    test('should be available via mirrors', () {
      expect(commonLib.uri.toString(), 'package:angular2/common.dart');
      expect(compilerLib.uri.toString(), 'package:angular2/compiler.dart');
      expect(coreLib.uri.toString(), 'package:angular2/core.dart');
      expect(instrumentationLib.uri.toString(),
          'package:angular2/instrumentation.dart');
      expect(platformBrowserLib.uri.toString(),
          'package:angular2/platform/browser.dart');
      expect(platformCommonLib.uri.toString(),
          'package:angular2/platform/common.dart');
    });
  });
}

Mark another test as not working with dart2js
Mark another test as not working with dart2js

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132199028
