mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
9f8c7199ea
* startrefactoring the event system * refactor: blockquotes, code blocks and links refactored * refactor codeblock to new event system * refactor subparser until ghcode to new events * finish adating ghcodeblock to new event * add headings to new events * add image to event system * add emphasisAndStrong to event system * fix wrong event name in emphasisAndStrong onEnd event * spanGamut and build * showdown.helper.event refactored to showdown.Event * partial * add links * add metadata * add strikethrough and table * build * add underline * add unescapeSpecialChars * small refactoring * remove old tables parser * add lists * add simple event trigger tests * build * fix browserstack * fix browserstack * remove testing for ie11 and bumped firefox min version to 45 * fixes and closes #920 * build
90 lines
2.5 KiB
JavaScript
90 lines
2.5 KiB
JavaScript
module.exports = function (config) {
|
|
config.set({
|
|
// global config of your BrowserStack account
|
|
browserStack: {
|
|
username: process.env.BROWSERSTACK_USERNAME,
|
|
accessKey: process.env.BROWSERSTACK_ACCESSKEY,
|
|
project: process.env.BROWSERSTACK_PROJECT_NAME || 'showdown',
|
|
build: process.env.BROWSERSTACK_BUILD_NAME || require('./package.json').version,
|
|
name: process.env.COMMIT_MSG || 'Unit Testing'
|
|
},
|
|
|
|
// define browsers
|
|
customLaunchers: {
|
|
bstack_chrome_windows: {
|
|
base: 'BrowserStack',
|
|
browser: 'chrome',
|
|
browser_version: '49',
|
|
os: 'Windows',
|
|
os_version: '10'
|
|
},
|
|
bstack_firefox_old_windows: {
|
|
base: 'BrowserStack',
|
|
browser: 'firefox',
|
|
browser_version: '45',
|
|
os: 'Windows',
|
|
os_version: '10'
|
|
},
|
|
bstack_firefox_latest_windows: {
|
|
base: 'BrowserStack',
|
|
browser: 'firefox',
|
|
browser_version: '99',
|
|
os: 'Windows',
|
|
os_version: '10'
|
|
},
|
|
bstack_edge_windows: {
|
|
base: 'BrowserStack',
|
|
browser: 'edge',
|
|
browser_version: '15',
|
|
os: 'Windows',
|
|
os_version: '10'
|
|
},
|
|
/*
|
|
bstack_ie11_windows: {
|
|
base: 'BrowserStack',
|
|
browser: 'ie',
|
|
browser_version: '11',
|
|
os: 'Windows',
|
|
os_version: '10'
|
|
},
|
|
*/
|
|
bstack_macos_safari: {
|
|
base: 'BrowserStack',
|
|
browser: 'safari',
|
|
browser_version: '10.1',
|
|
os: 'OS X',
|
|
os_version: 'Sierra'
|
|
},
|
|
bstack_iphoneX: {
|
|
base: 'BrowserStack',
|
|
browser: 'safari',
|
|
os: 'ios',
|
|
os_version: '11.0',
|
|
device: 'iPhone X',
|
|
real_mobile: true
|
|
},
|
|
bstack_android: {
|
|
base: 'BrowserStack',
|
|
browser: 'chrome',
|
|
os: 'android',
|
|
os_version:'4.4',
|
|
device: 'Samsung Galaxy Tab 4',
|
|
realMobile: true
|
|
}
|
|
},
|
|
|
|
browsers: ['bstack_chrome_windows', 'bstack_firefox_old_windows', 'bstack_firefox_latest_windows', /*'bstack_ie11_windows',*/ 'bstack_edge_windows', 'bstack_iphoneX', 'bstack_macos_safari', 'bstack_android'],
|
|
frameworks: ['mocha', 'chai'],
|
|
reporters: ['dots', 'BrowserStack'],
|
|
files: [
|
|
{ pattern: '.build/showdown.js'},
|
|
{ pattern: 'src/options.js'},
|
|
// tests
|
|
{ pattern: 'test/unit/showdown*.js' }
|
|
//{ pattern: 'test/functional/showdown*.js' },
|
|
],
|
|
singleRun: true,
|
|
concurrency: Infinity
|
|
});
|
|
};
|