我有一个Java应用程序,可以在MS Word上打开WebDAV文件.使用下一个代码在Windows上成功运行:
Runtime.getRuntime().exec("cmd /c start winword " + webdavUrl);
Run Code Online (Sandbox Code Playgroud)
但在Mac OSX上,这是不可能的.我试过这个功能,但它只打开一个空白文件:
Runtime.getRuntime().exec(new String[]{"open", "-a", "Microsoft Word", webdavUrl});
Run Code Online (Sandbox Code Playgroud)
如果我从URL创建一个文件,我可以打开该文件,但我失去了对WebDav URL的引用.
我找到了一个关于可以从浏览器执行此过程的JavaScript代码的讨论.
有什么想法吗?
我对处理语言环境格式的非常特定的数字组件进行了多次测试。使用Karma进行的测试很好,但是一旦将其更改为Jest,就会出现此错误:
NoLocale: Missing locale info for 'de-DE' Solution: http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/#toc-no-locale
我尝试了附件链接中的所有建议,但没有一个成功。
将IntlService被初始化en-US的区域设置ID,所以我改成了每个测试,根据我想断言(格式de-DE或en-GB)。
这些是component.spec.ts中的测试示例:
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NumericTextBoxComponent } from './numeric-textbox.component';
import { FormsModule } from '@angular/forms';
import { CldrIntlService, IntlModule, load } from '@progress/kendo-angular-intl';
describe('NumericTextBoxComponent', () => {
let component: NumericTextBoxComponent;
let fixture: ComponentFixture<NumericTextBoxComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ FormsModule, IntlModule ],
declarations: [ NumericTextBoxComponent ],
})
.compileComponents();
}));
beforeEach(() => {
fixture = …Run Code Online (Sandbox Code Playgroud)