Accept slightly modified baselines

This commit is contained in:
Wesley Wigham
2020-05-07 18:09:28 -07:00
parent a90f97c6f6
commit 04e6b6fe92
12 changed files with 14 additions and 14 deletions
@@ -68,7 +68,7 @@ var classic = new s.Classic()
/** @param {s.n.K} c
@param {s.Classic} classic */
function f(c, classic) {
>f : (c: s.n.K, classic: s.Classic) => void
>f : (c: K, classic: s.Classic) => void
>c : K
>classic : Classic
@@ -70,5 +70,5 @@ type HandlerOptions = {
/**
* Should be able to export a type alias at the same time.
*/
name: String;
name: string;
};
@@ -72,7 +72,7 @@ var paramedObject = {valueOf: 1};
* @return {Object}
*/
function returnAnyObject(obj) {
>returnAnyObject : (obj: Object) => Object
>returnAnyObject : (obj: any) => any
>obj : any
return obj;
@@ -42,12 +42,12 @@ let s = g('hi')()
* @param {Array.<Object>} keyframes - Can't look up types on Element since it's a global in another file. (But it shouldn't crash).
*/
Element.prototype.animate = function(keyframes) {};
>Element.prototype.animate = function(keyframes) {} : (keyframes: Array<Object>) => void
>Element.prototype.animate = function(keyframes) {} : (keyframes: Array<any>) => void
>Element.prototype.animate : (keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions) => Animation
>Element.prototype : Element
>Element : { new (): Element; prototype: Element; }
>prototype : Element
>animate : (keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions) => Animation
>function(keyframes) {} : (keyframes: Array<Object>) => void
>function(keyframes) {} : (keyframes: Array<any>) => void
>keyframes : any[]
@@ -109,6 +109,6 @@ function fn() {}
* @param {fn<T>} somebody
*/
function sayHello8(somebody) { }
>sayHello8 : (somebody: fn<T>) => void
>sayHello8 : (somebody: () => void) => void
>somebody : () => void
@@ -1,7 +1,7 @@
=== tests/cases/conformance/jsdoc/foo.js ===
/** @param {Image} image */
function process(image) {
>process : (image: Image) => HTMLImageElement
>process : (image: new (width?: number, height?: number) => HTMLImageElement) => HTMLImageElement
>image : new (width?: number, height?: number) => HTMLImageElement
return new image(1, 1)
@@ -75,7 +75,7 @@ var classic = new s.Classic()
/** @param {s.n.K} c
@param {s.Classic} classic */
function f(c, classic) {
>f : (c: s.n.K, classic: s.Classic) => void
>f : (c: C, classic: s.Classic) => void
>c : C
>classic : Classic
@@ -40,7 +40,7 @@ lf.Transaction = function() {};
* @return {!IThenable}
*/
lf.Transaction.prototype.begin = function(scope) {};
>lf.Transaction.prototype.begin = function(scope) {} : (scope: Array<lf.schema.Table>) => any
>lf.Transaction.prototype.begin = function(scope) {} : (scope: Array<any>) => any
>lf.Transaction.prototype.begin : any
>lf.Transaction.prototype : any
>lf.Transaction : typeof Transaction
@@ -48,6 +48,6 @@ lf.Transaction.prototype.begin = function(scope) {};
>Transaction : typeof Transaction
>prototype : any
>begin : any
>function(scope) {} : (scope: Array<lf.schema.Table>) => any
>function(scope) {} : (scope: Array<any>) => any
>scope : any[]
@@ -1,7 +1,7 @@
=== tests/cases/conformance/salsa/bug26877.js ===
/** @param {Emu.D} x */
function ollKorrect(x) {
>ollKorrect : (x: Emu.D) => void
>ollKorrect : (x: D) => void
>x : D
x._model
@@ -33,7 +33,7 @@ var msgs = Outer.i.messages()
/** @param {Outer.Inner} inner */
function x(inner) {
>x : (inner: Outer.Inner) => void
>x : (inner: I) => void
>inner : I
}
@@ -25,7 +25,7 @@ crunch.n
* @param {ex.Crunch} wrap
*/
function f(wrap) {
>f : (wrap: ex.Crunch) => void
>f : (wrap: import("tests/cases/conformance/salsa/ex").Crunch) => void
>wrap : import("tests/cases/conformance/salsa/ex").Crunch
wrap.n
@@ -26,7 +26,7 @@ crunch.n
* @param {ex.Crunch} wrap
*/
function f(greatest, wrap) {
>f : (greatest: ex.Greatest, wrap: ex.Crunch) => void
>f : (greatest: import("tests/cases/conformance/salsa/ex").Greatest, wrap: import("tests/cases/conformance/salsa/ex").Crunch) => void
>greatest : import("tests/cases/conformance/salsa/ex").Greatest
>wrap : import("tests/cases/conformance/salsa/ex").Crunch