Fix tests

This commit is contained in:
Andy Hanson
2016-09-16 11:14:30 -07:00
parent 28ef3d201b
commit 823045554e
11 changed files with 19 additions and 37 deletions

View File

@@ -1,19 +1,9 @@
import Bowser = require('bowser');
Bowser.msedge === true;
Bowser.test(['msie']) === true;
Bowser.a === Bowser.c;
Bowser.osversion > 10;
Bowser.osversion === '10.1A';
bowser.msedge === true;
bowser.test(['msie']) === true;
bowser.a === bowser.c;
bowser.osversion > 10;
bowser.osversion === '10.1A';
bowser.compareVersions(['9.0', '10']);
bowser() === <BowserModule.IBowserDetection>{android: true, x: true};
bowser() === <bowser.IBowserDetection>{android: true, x: true};
bowser.check({msie: "11"}, window.navigator.userAgent);
bowser.isUnsupportedBrowser({msie: "10"}, window.navigator.userAgent);

6
bowser/index.d.ts vendored
View File

@@ -3,11 +3,11 @@
// Definitions by: Paulo Cesar <https://github.com/pocesar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare var def: BowserModule.IBowser;
export = def;
declare const bowser: bowser.IBowser;
export = bowser;
export as namespace bowser;
declare namespace BowserModule {
declare namespace bowser {
export interface IBowserOS {
mac: boolean;

View File

@@ -1,8 +1,8 @@
// Type definitions for Apache Cordova Contacts plugin.
// Type definitions for Apache Cordova Contacts plugin
// Project: https://github.com/apache/cordova-plugin-contacts
// Definitions by: Microsoft Open Technologies, Inc. <http://msopentech.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
//
//
// Copyright (c) Microsoft Open Technologies, Inc.
// Licensed under the MIT license.
@@ -204,7 +204,7 @@ declare var ContactName: {
* The ContactField object is a reusable component that represents contact fields generically.
* Each ContactField object contains a value, type, and pref property. A Contact object stores
* several properties in ContactField[] arrays, such as phone numbers and email addresses.
*
*
* In most instances, there are no pre-determined values for a ContactField object's type attribute.
* For example, a phone number can specify type values of home, work, mobile, iPhone,
* or any other value that is supported by a particular device platform's contact database.

View File

@@ -1,4 +1,4 @@
// Type definitions for Apache Cordova File System plugin.
// Type definitions for Apache Cordova File System plugin
// Project: https://github.com/apache/cordova-plugin-file
// Definitions by: Microsoft Open Technologies, Inc. <http://msopentech.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@@ -5,7 +5,7 @@ import esprima = require('esprima');
import * as ESTree from 'estree';
var token: esprima.Token;
var comment: esprima.Comment;
var comment: ESTree.Comment;
var program: ESTree.Program;
var string: string;

4
esprima/index.d.ts vendored
View File

@@ -21,10 +21,6 @@ declare namespace esprima {
value: string;
}
interface Comment extends ESTree.Node {
value: string;
}
interface Options {
loc?: boolean;
range?: boolean;

View File

@@ -14,7 +14,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"inversify-devtools.d.ts",
"index.d.ts",
"inversify-devtools-test.ts"
]
}

View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference types="chai" />
import Sinon = require("Sinon");
import Sinon = require("sinon");
declare global {
var should: Chai.Should;

View File

@@ -1,8 +1,4 @@
// test file for masonry-layout.d.ts
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="./masonry-layout.d.ts" />
//import {Masonry} from "./masonry-layout.d.ts";
// responsive layouts
@@ -44,5 +40,5 @@ function testExtendedOptions() {
transitionDuration: '0.4s',
resize: true,
initLayout: true
});
}
});
}

View File

@@ -8,16 +8,16 @@
declare module "react-scrollbar" {
interface ScrollAreaProps extends React.Props<ScrollArea> {
className?: string,
style?: __React.CSSProperties,
style?: React.CSSProperties,
speed?: number,
contentClassName?: string,
contentStyle?: __React.CSSProperties,
contentStyle?: React.CSSProperties,
vertical?: boolean,
verticalContainerStyle?: __React.CSSProperties,
verticalScrollbarStyle?: __React.CSSProperties,
verticalContainerStyle?: React.CSSProperties,
verticalScrollbarStyle?: React.CSSProperties,
horizontal?: boolean,
horizontalContainerStyle?: __React.CSSProperties,
horizontalScrollbarStyle?: __React.CSSProperties,
horizontalContainerStyle?: React.CSSProperties,
horizontalScrollbarStyle?: React.CSSProperties,
onScroll?: (value: {leftPosition: number, topPosition: number, containerHeight: number, containerWidth: number, realHeight: number, realWidth: number}) => void,
contentWindow?: any,
ownerDocument?: any,