|
|
@ -202,6 +202,24 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
}, _alert("Login block is not working (write/read/remove)"));
|
|
|
|
}, _alert("Login block is not working (write/read/remove)"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert(function (cb) {
|
|
|
|
|
|
|
|
var url = '/common/onlyoffice/v4/web-apps/apps/spreadsheeteditor/main/index.html';
|
|
|
|
|
|
|
|
var expect = {
|
|
|
|
|
|
|
|
'cross-origin-resource-policy': 'cross-origin',
|
|
|
|
|
|
|
|
'cross-origin-embedder-policy': 'require-corp',
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax(url, {
|
|
|
|
|
|
|
|
success: function (data, textStatus, xhr) {
|
|
|
|
|
|
|
|
cb(!Object.keys(expect).some(function (k) {
|
|
|
|
|
|
|
|
var response = xhr.getResponseHeader(k);
|
|
|
|
|
|
|
|
console.log(k, response);
|
|
|
|
|
|
|
|
return response !== expect[k];
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}, _alert("Missing HTTP headers required for XLSX export"));
|
|
|
|
|
|
|
|
|
|
|
|
var row = function (cells) {
|
|
|
|
var row = function (cells) {
|
|
|
|
return h('tr', cells.map(function (cell) {
|
|
|
|
return h('tr', cells.map(function (cell) {
|
|
|
|
return h('td', cell);
|
|
|
|
return h('td', cell);
|
|
|
|