Commit b17b391e authored by Alexey.Musinov's avatar Alexey.Musinov

добавлен тест для десктопного приложения

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47132 954022d7-b5bf-4e40-9824-e11837661b57
parent 329472ae
...@@ -490,17 +490,34 @@ ...@@ -490,17 +490,34 @@
var bChartEditor = !!getURLParameter("charteditor"); var bChartEditor = !!getURLParameter("charteditor");
var sUserNameAndId = "user_" + Math.floor ((Math.random() * 100) + 1); var sUserNameAndId = "user_" + Math.floor ((Math.random() * 100) + 1);
api.asc_LoadDocument({ var offLineApp = 0; // 1; // NOTE: ONLY FOR TEST DESKTOP APPLICATION
"Id" : getURLParameter("key") ? decodeURIComponent(getURLParameter("key")) : "9876543210",
"Url" : getURLParameter("url") ? decodeURIComponent(getURLParameter("url")) : undefined, if (!offLineApp) {
"Title" : getURLParameter("title") ? decodeURIComponent(getURLParameter("title")).replace(new RegExp("\\+",'g')," ") : undefined, api.asc_LoadDocument({
"Format" : getURLParameter("filetype") ? decodeURIComponent(getURLParameter("filetype")) : undefined, "Id" : getURLParameter("key") ? decodeURIComponent(getURLParameter("key")) : "9876543210",
"VKey" : getURLParameter("vkey") ? decodeURIComponent(getURLParameter("vkey")) : undefined, "Url" : getURLParameter("url") ? decodeURIComponent(getURLParameter("url")) : undefined,
"Origin" : (sProtocol.search(/\w+/) >= 0 ? sProtocol + "//" : "") + sHost, "Title" : getURLParameter("title") ? decodeURIComponent(getURLParameter("title")).replace(new RegExp("\\+",'g')," ") : undefined,
"UserId" : sUserNameAndId, "Format" : getURLParameter("filetype") ? decodeURIComponent(getURLParameter("filetype")) : undefined,
"UserName" : sUserNameAndId, "VKey" : getURLParameter("vkey") ? decodeURIComponent(getURLParameter("vkey")) : undefined,
"ChartEditor" : bChartEditor "Origin" : (sProtocol.search(/\w+/) >= 0 ? sProtocol + "//" : "") + sHost,
}); "UserId" : sUserNameAndId,
"UserName" : sUserNameAndId,
"ChartEditor" : bChartEditor
});
} else {
api.asc_LoadDocument({
"Id" : getURLParameter("key") ? decodeURIComponent(getURLParameter("key")) : "9876543210",
"Url" : decodeURIComponent("file:///X:/AVS/Sources/TeamlabOffice/trunk/OfficeWeb/Excel/offlinedocs/test-native/"),
"Title" : getURLParameter("title") ? decodeURIComponent(getURLParameter("title")).replace(new RegExp("\\+",'g')," ") : undefined,
"Format" : getURLParameter("filetype") ? decodeURIComponent(getURLParameter("filetype")) : undefined,
"VKey" : getURLParameter("vkey") ? decodeURIComponent(getURLParameter("vkey")) : undefined,
"Origin" : (sProtocol.search(/\w+/) >= 0 ? sProtocol + "//" : "") + sHost,
"UserId" : sUserNameAndId,
"UserName" : sUserNameAndId,
"ChartEditor" : bChartEditor,
"OfflineApp" : true
});
}
$("#enableKE").data("state", true).click(function(){ $("#enableKE").data("state", true).click(function(){
var $this = $(this), s = $this.data("state"); var $this = $(this), s = $this.data("state");
......
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?><media><image md5="876AD77946A99D9A4C6B47959053CD05" filename="image1.jpg" /></media>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment