build: add bazel test rules for remainder of packages (#21053)

PR Close #21053
This commit is contained in:
Misko Hevery
2017-12-17 15:10:54 -08:00
committed by Igor Minar
parent cc1058f6e1
commit 3d50fd7cac
88 changed files with 912 additions and 322 deletions

View File

@ -9,7 +9,7 @@
import {describe, expect, it} from '../../../core/testing/src/testing_internal';
import {CssLexer, CssLexerMode, CssToken, CssTokenType, cssScannerError, getRawMessage, getToken} from '../../src/css_parser/css_lexer';
(function(){
(function() {
function tokenize(
code: string, trackComments: boolean = false,
mode: CssLexerMode = CssLexerMode.ALL): CssToken[] {

View File

@ -115,7 +115,7 @@ function _getCaptureAst(capture: any[], index = 0): CssAst {
return <CssAst>capture[index][0];
}
(function(){
(function() {
function parse(cssCode: string, ignoreErrors: boolean = false) {
const output = new CssParser().parse(cssCode, 'some-fake-css-file.css');
const errors = output.errors;

View File

@ -15,7 +15,7 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
import {unparse} from './unparser';
import {validate} from './validator';
(function(){
(function() {
function createParser() { return new Parser(new Lexer()); }
function parseAction(text: string, location: any = null): ASTWithSource {

View File

@ -242,7 +242,7 @@ lignes</target>
</xliff>
`;
(function(){
(function() {
const serializer = new Xliff2();
function toXliff(html: string, locale: string | null = null): string {

View File

@ -226,7 +226,7 @@ lignes</target>
</xliff>
`;
(function(){
(function() {
const serializer = new Xliff();
function toXliff(html: string, locale: string | null = null): string {

View File

@ -323,7 +323,7 @@ class ArrayConsole implements Console {
}
(function(){
(function() {
let ngIf: CompileDirectiveSummary;
let parse: (
template: string, directives: CompileDirectiveSummary[], pipes?: CompilePipeSummary[],