1 /* Copyright (c) 2013 IndexData ApS. http://indexdata.com
3 * helper functions for other test *.spec.js files
8 * combine arrays, return a flat list
9 * [["a","b"], ["c"], "d"] => ["a", "b", "c", "d"]
12 var flat_list = function (list) {
15 for(var i = 0; i < list.length; i++) {
16 if (typeof list[i] == 'object') {
17 for(var j = 0; j < list[i].length; j++) {
18 data.push(list[i][j]);
30 * list of div id to check
34 required: ["mkwsSearch", "mkwsResults"],
35 optional: ["mkwsSwitch", "mkwsLang", "mkwsTargets"],
36 optional2: ["mkwsMOTD", "mkwsStat", "footer"]