Просмотр исходного кода

add notes on hacks to use karma with IE8

Adam Shaw 11 лет назад
Родитель
Сommit
63cdff6880
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      build/karma.conf.js

+ 12 - 0
build/karma.conf.js

@@ -10,6 +10,12 @@ module.exports = function(config) {
 
 
 		// list of files / patterns to load in the browser
 		// list of files / patterns to load in the browser
 		files: [
 		files: [
+
+			// For IE8 testing. Because doesn't have forEach and other ES5 methods
+			// which are common in the tests.
+			// You must run `bower install es5-shim` first.
+			//'../lib/es5-shim/es5-shim.js',
+
 			'../lib/moment/moment.js',
 			'../lib/moment/moment.js',
 			'../lib/jquery/dist/jquery.js',
 			'../lib/jquery/dist/jquery.js',
 			'../lib/jquery-ui/ui/jquery-ui.js',
 			'../lib/jquery-ui/ui/jquery-ui.js',
@@ -34,6 +40,12 @@ module.exports = function(config) {
 			'../dist/fullcalendar.css',
 			'../dist/fullcalendar.css',
 			'../tests/base.css',
 			'../tests/base.css',
 			'../tests/automated/*.js'
 			'../tests/automated/*.js'
+
+			// For IE8 testing. Because it can't handle running all the tests at once.
+			// Comment the above line and run karma with each of the below lines uncommented.
+			//'../tests/automated/{a,b,c,d,e,f,g,h,i,j,k,l}*.js'
+			//'../tests/automated/{m,n}*.js' // mostly moment tests
+			//'../tests/automated/{o,p,q,r,s,t,u,v,w,x,y,z}*.js'
 		],
 		],
 
 
 		// list of files to exclude
 		// list of files to exclude