TypeScript/tests/baselines/reference/scannerS7.2_A1.5_T2.types
Wesley Wigham 5353475fce Always collect type and symbol baselines (#18621)
* Always generate type & symbol baselines

* Accept changed shadowed baselines

* Accept brand new type and symbol baselines

* Allow `getTypeAtLocation` to return undefined in the type writer

* Accept baselines which had missing type information

* Bind container for dynamically names enum members so they may be printed

* Accept type/symbol baselines for enums with computed members

* First pass at reducing typeWriter memory overhead

* Use generators to allow for type and symbol baselines with no cache

* Accept new baselines for tests whose output was fixed by better newline splitting

* Hard cap on number of declarations printed, cache declaration print text

* handle differing newlines better still to handle RWC newlines

* Lower abridging count, accept abridged baselines

* Limit max RWC error output size, limit RWC type and symbol baseline input size

* Move skip logic into type and symbol baseliner to streamline error handling

* Accept removal of empty baselines

* Canonicalize path earlier to handle odd paths in input files

* Do canonicalization earlier still, also ensure parallel perf profiles for different targets do not trample one another

* No need to pathify again
2017-09-22 15:52:04 -07:00

53 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

=== tests/cases/conformance/scanner/ecmascript5/scannerS7.2_A1.5_T2.ts ===
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* NO-BREAK SPACE (U+00A0) between any two tokens is allowed
*
* @path ch07/7.2/S7.2_A1.5_T2.js
* @description Insert real NO-BREAK SPACE between tokens of var x=1
*/
//CHECK#1
eval("\u00A0var x\u00A0= 1\u00A0");
>eval("\u00A0var x\u00A0= 1\u00A0") : any
>eval : (x: string) => any
>"\u00A0var x\u00A0= 1\u00A0" : " var x = 1 "
if (x !== 1) {
>x !== 1 : boolean
>x : number
>1 : 1
$ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x));
>$ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x)) : any
>$ERROR : any
>'#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x) : string
>'#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' : "#1: eval(\"\\u00A0var x\\u00A0= 1\\u00A0\"); x === 1. Actual: "
>(x) : number
>x : number
}
//CHECK#2
 var x = 1 ;
>x : number
>1 : 1
if (x !== 1) {
>x !== 1 : boolean
>x : number
>1 : 1
$ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x));
>$ERROR('#2:  var x = 1 ; x === 1. Actual: ' + (x)) : any
>$ERROR : any
>'#2:  var x = 1 ; x === 1. Actual: ' + (x) : string
>'#2:  var x = 1 ; x === 1. Actual: ' : "#2:  var x = 1 ; x === 1. Actual: "
>(x) : number
>x : number
}