Skip to content

Commit

Permalink
Merge pull request #5 from kumaresan-subramani/master
Browse files Browse the repository at this point in the history
Gihub source updation for v16.4.0.52 service pack 1 release
  • Loading branch information
essentialjs2 authored Feb 6, 2019
2 parents e2a5148 + e0ee02e commit 95312c1
Show file tree
Hide file tree
Showing 1,400 changed files with 129,509 additions and 22,042 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.npmrc
.vscode/
public/
node_modules/
styles/**/*.css
**/*.js
!samples/**/*.js
!src/common/lib/**
units.html
src/**/*-stack.json
!src/sys.js
src/common/api-table
src/common/api-table.json
!src/common/api-table-generator.js
npm-debug.log
2 changes: 0 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,5 +342,3 @@ npm run serve
## Support and Feedback

* For any other queries, reach our [Syncfusion support team](https://www.syncfusion.com/support/directtrac/incidents/newincident?utm_source=github&utm_medium=listing&utm_campaign=ej2-samples) or post the queries through the [community forums](https://www.syncfusion.com/forums?utm_source=github&utm_medium=listing&utm_campaign=ej2-samples).

* To renew the subscription, click [here](https://www.syncfusion.com/sales/products?utm_source=github&utm_medium=listing&utm_campaign=ej2-samples) or contact our sales team at <[email protected]>
404 changes: 215 additions & 189 deletions index.html

Large diffs are not rendered by default.

9,621 changes: 9,621 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

67 changes: 52 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,72 @@
{
"name": "@syncfusion/ej2-samples",
"version": "16.1.24",
"version": "16.4.52",
"description": "Samples for Syncfusion Essential JS 2",
"author": "Syncfusion Inc.",
"license": "SEE LICENSE IN license",
"dependencies": {
"@syncfusion/ej2": "16.1.24",
"cheerio": "^1.0.0-rc.1",
"@syncfusion/ej2": "16.4.52",
"@syncfusion/ej2-base": "16.4.52",
"@syncfusion/ej2-buttons": "16.4.52",
"@syncfusion/ej2-calendars": "16.4.52",
"@syncfusion/ej2-charts": "16.4.52",
"@syncfusion/ej2-circulargauge": "16.4.52",
"@syncfusion/ej2-compression": "16.4.52",
"@syncfusion/ej2-data": "16.4.52",
"@syncfusion/ej2-diagrams": "16.4.52",
"@syncfusion/ej2-documenteditor": "16.4.52",
"@syncfusion/ej2-dropdowns": "16.4.52",
"@syncfusion/ej2-excel-export": "16.4.52",
"@syncfusion/ej2-file-utils": "16.4.52",
"@syncfusion/ej2-grids": "16.4.52",
"@syncfusion/ej2-heatmap": "16.4.52",
"@syncfusion/ej2-inplace-editor": "16.4.52",
"@syncfusion/ej2-inputs": "16.4.52",
"@syncfusion/ej2-lineargauge": "16.4.52",
"@syncfusion/ej2-lists": "16.4.52",
"@syncfusion/ej2-maps": "16.4.52",
"@syncfusion/ej2-navigations": "16.4.52",
"@syncfusion/ej2-pdf-export": "16.4.52",
"@syncfusion/ej2-popups": "16.4.52",
"@syncfusion/ej2-querybuilder": "16.4.52",
"@syncfusion/ej2-richtexteditor": "^16.4.52",
"@syncfusion/ej2-schedule": "16.4.52",
"@syncfusion/ej2-splitbuttons": "16.4.52",
"@syncfusion/ej2-treegrid": "16.4.52",
"@syncfusion/ej2-treemap": "16.4.52",
"@types/codemirror": "0.0.56",
"@types/crossroads": "0.0.28",
"@types/es6-promise": "0.0.28",
"@types/hasher": "0.0.27",
"@types/marked": "^0.3.0",
"@types/moment-timezone": "^0.5.3",
"@types/signals": "0.0.16",
"codemirror": "^5.37.0",
"crossroads": "^0.12.2",
"fuse.js": "3.2.0",
"hasher": "^1.2.0",
"moment-timezone": "^0.5.14"
"marked": "^0.3.19",
"moment-timezone": "^0.5.14",
"webpack-stream": "^5.2.1"
},
"devDependencies": {
"@types/chai": "^3.4.28",
"@types/crossroads": "0.0.28",
"@types/es6-promise": "0.0.28",
"@types/hasher": "0.0.27",
"@types/highlight.js": "^9.1.7",
"@types/jasmine": "^2.2.29",
"@types/jasmine": "^2.8.9",
"@types/jasmine-ajax": "^3.1.27",
"@types/moment-timezone": "^0.5.3",
"@types/requirejs": "^2.1.26",
"@types/signals": "0.0.16",
"browser-sync": "2.11.2",
"elasticlunr": "0.9.5",
"fuse.js": "^3.2.0",
"markdown-it": "^8.4.0",
"@types/moment-timezone": "^0.5.3",
"es6-promise": "^3.2.1",
"fuse.js": "^3.2.0",
"gulp": "^3.9.1",
"gulp-sass": "^3.1.0",
"gulp-typescript": "^3.1.6",
"requirejs": "^2.3.3",
"typescript": "2.3.4",
"browser-sync": "2.11.2",
"jasmine-ajax": "^3.3.1",
"jasmine-core": "^2.6.1",
"karma": "^1.7.0",
Expand All @@ -41,13 +76,15 @@
"karma-jasmine": "^1.1.0",
"karma-jasmine-ajax": "^0.1.13",
"karma-requirejs": "^1.1.0",
"markdown-it": "^8.4.0",
"requirejs": "^2.3.3",
"run-sequence": "^1.2.2",
"webpack": "2.5.1",
"webpack-stream": "^3.2.0"
"typescript": "2.3.4",
"webpack": "2.5.1"
},
"scripts": {
"build": "gulp build",
"serve": "gulp serve",
"test": "gulp test"
"serve": "gulp serve",
"test": "gulp test"
}
}
125 changes: 68 additions & 57 deletions spec/samplebrowser.spec.ts
Original file line number Diff line number Diff line change
@@ -1,60 +1,71 @@
/**
* sample browser Spec
*/
import { Ajax } from '@syncfusion/ej2-base';
import '../node_modules/es6-promise/dist/es6-promise';
import { samplesList } from '../src/common/sampleList';

interface MyWindow extends Window {
customError: any;
navigateSample: any;
}

declare let window: MyWindow;


describe('sample browser', (): void => {

jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;

let samples: any = samplesList;
beforeAll((done: Function) => {
let ajax: Ajax = new Ajax('../base/index.html', 'GET', true);
ajax.send().then((value: Object): void => {
document.body.innerHTML = document.body.innerHTML + value.toString();
require(
['../src/common/index.min'],
(): void => {
done();
});
});
});
describe('testing -', () => {

beforeEach(() => {
window.customError = (): boolean => {
//console.log('called error');
return false;
};
spyOn(window, 'customError');
window.addEventListener('error', window.customError);
});

afterEach(() => {
window.customError.calls.reset();
});
for (let control of samples) {
if (control.category !== 'ShowCase') {
control.samples.forEach((element: any) => {
it('Control Name: ' + control.directory + ', Sample Name: ' + element.name, (done: Function) => {
window.navigateSample = (): void => {
expect(window.customError).not.toHaveBeenCalled();
done();
};
window.location.href = '#/material/' + control.directory + '/' + element.url + '.html';
});
});
}
}
});
});
/* tslint:disable */
import { Ajax } from '@syncfusion/ej2-base';
import '../node_modules/es6-promise/dist/es6-promise';
import { samplesList } from './../src/common/sampleList';

interface MyWindow extends Window {
customError: any;
onerror: any;
navigateSample: any;
console: any;
}

declare let window: MyWindow;


describe('sample browser', (): void => {

jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;

let samples: any = samplesList;
beforeAll((done: Function) => {
let ajax: Ajax = new Ajax('../base/index.html', 'GET', true);
ajax.send().then((value: Object): void => {
document.body.innerHTML = document.body.innerHTML + value.toString();
require(
['../src/common/index.min'],
(): void => {
done();
});
});
});
describe('testing -', () => {

beforeEach(() => {
window.customError = (): boolean => {
return false;
};
window.onerror = (message: any, file: any, line: any, column: any, errorObj: any): boolean => {
window.console.log(message);
window.console.log('at ' + file + ' line: ' + line + ' column: ' + column);
return false;
};
spyOn(window, 'customError');
window.addEventListener('error', window.customError);
});

afterEach(() => {
window.customError.calls.reset();
});

for (let control of samples) {
if (control.category !== 'ShowCase' && control.name !== 'Stock Chart') {
control.samples.forEach((element: any, index: number) => {
it(' ', (done: Function) => {
window.navigateSample = (): void => {
expect(window.customError).not.toHaveBeenCalled();
done();
};
window.location.href = '#/material/' + control.directory + '/' + element.url + '.html';
window.console.log(window.location.href);
});

});

}
}
});
});
Loading

0 comments on commit 95312c1

Please sign in to comment.