Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
477e19d2
Kaydet (Commit)
477e19d2
authored
Eyl 17, 2012
tarafından
Bjoern Michaelsen
Kaydeden (comit)
Michael Meeks
Eyl 17, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
targetted make reversion.
üst
764e7e71
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
90 deletions
+31
-90
CppunitTest_writerfilter_doctok.mk
writerfilter/CppunitTest_writerfilter_doctok.mk
+2
-4
Module_writerfilter.mk
writerfilter/Module_writerfilter.mk
+1
-4
LoadDocuments.java
writerfilter/qa/complex/ooxml/LoadDocuments.java
+28
-51
TestDocument.java
writerfilter/qa/complex/ooxml/TestDocument.java
+0
-31
testdoctok.cxx
writerfilter/qa/cppunittests/doctok/testdoctok.cxx
+0
-0
No files found.
writerfilter/CppunitTest_writerfilter_doctok.mk
Dosyayı görüntüle @
477e19d2
...
...
@@ -45,9 +45,7 @@ $(eval $(call gb_CppunitTest_set_include,writerfilter_doctok,\
-I$(SRCDIR)/writerfilter/inc \
))
$(eval $(call gb_CppunitTest_use_api,writerfilter_doctok,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_sdk_api,writerfilter_doctok))
$(eval $(call gb_CppunitTest_use_udk_api,writerfilter_doctok))
# vim: set noet sw=4 ts=4:
writerfilter/Module_writerfilter.mk
Dosyayı görüntüle @
477e19d2
...
...
@@ -35,12 +35,9 @@ $(eval $(call gb_Module_add_targets,writerfilter,\
))
$(eval $(call gb_Module_add_check_targets,writerfilter,\
CppunitTest_writerfilter_doctok \
CppunitTest_writerfilter_rtftok \
))
$(eval $(call gb_Module_add_subsequentcheck_targets,writerfilter,\
JunitTest_writerfilter_complex \
))
# CppunitTest_writerfilter_doctok \
# vim: set noet sw=4 ts=4:
writerfilter/qa/complex/ooxml/LoadDocuments.java
Dosyayı görüntüle @
477e19d2
...
...
@@ -17,17 +17,10 @@
*/
package
complex
.
ooxml
;
import
com.sun.star.lang.XComponent
;
import
com.sun.star.lang.XMultiServiceFactory
;
import
com
.sun.star.uno.UnoRuntim
e
;
import
com
plexlib.ComplexTestCas
e
;
import
java.io.File
;
import
org.junit.AfterClass
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
org.openoffice.test.Argument
;
import
org.openoffice.test.OfficeConnection
;
import
static
org
.
junit
.
Assert
.*;
import
com.sun.star.text.XTextDocument
;
/*
* To change this template, choose Tools | Templates
...
...
@@ -38,54 +31,38 @@ import static org.junit.Assert.*;
*
* @author hb137859
*/
public
class
LoadDocuments
{
@Test
public
void
test1
()
{
String
testDocumentsPath
=
Argument
.
get
(
"tdoc"
);
System
.
out
.
println
(
"Test documents in:"
+
testDocumentsPath
);
public
class
LoadDocuments
extends
ComplexTestCase
{
private
XMultiServiceFactory
m_xMSF
;
@Override
public
String
[]
getTestMethodNames
()
{
return
new
String
[]
{
"test1"
};
}
public
void
before
()
throws
Exception
{
m_xMSF
=
(
XMultiServiceFactory
)
param
.
getMSF
();
}
public
void
test1
()
{
String
testDocumentsPath
=
util
.
utils
.
getFullTestDocName
(
""
);
log
.
println
(
"Test documents in:"
+
testDocumentsPath
);
File
dir
=
new
File
(
testDocumentsPath
);
String
[]
files
=
dir
.
list
();
try
{
if
(
files
!=
null
)
{
for
(
int
i
=
0
;
i
<
files
.
length
;
++
i
)
{
System
.
out
.
println
(
files
[
i
]);
String
url
=
TestDocument
.
getUrl
(
files
[
i
]);
System
.
out
.
println
(
url
);
if
(
files
!=
null
)
{
for
(
int
i
=
0
;
i
<
files
.
length
;
++
i
)
{
log
.
println
(
files
[
i
]);
String
url
=
util
.
utils
.
getFullTestURL
(
files
[
i
]);
log
.
println
(
url
);
XComponent
xDoc
=
util
.
DesktopTools
.
loadDoc
(
getMSF
(),
url
,
null
);
System
.
out
.
println
(
"loaded."
);
util
.
DesktopTools
.
closeDoc
(
xDoc
);
System
.
out
.
println
(
"done."
);
}
}
else
{
fail
(
"Files not found"
);
XTextDocument
xDoc
=
util
.
WriterTools
.
loadTextDoc
(
m_xMSF
,
url
);
util
.
DesktopTools
.
closeDoc
(
xDoc
);
}
}
else
{
failed
();
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
e
);
fail
(
"failed"
);
}
}
private
XMultiServiceFactory
getMSF
()
{
final
XMultiServiceFactory
xMSF1
=
UnoRuntime
.
queryInterface
(
XMultiServiceFactory
.
class
,
connection
.
getComponentContext
().
getServiceManager
());
return
xMSF1
;
}
// setup and close connections
@BeforeClass
public
static
void
setUpConnection
()
throws
Exception
{
System
.
out
.
println
(
"setUpConnection()"
);
connection
.
setUp
();
}
@AfterClass
public
static
void
tearDownConnection
()
throws
InterruptedException
,
com
.
sun
.
star
.
uno
.
Exception
{
System
.
out
.
println
(
"tearDownConnection()"
);
connection
.
tearDown
();
}
private
static
final
OfficeConnection
connection
=
new
OfficeConnection
();
}
writerfilter/qa/complex/ooxml/TestDocument.java
deleted
100644 → 0
Dosyayı görüntüle @
764e7e71
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package
complex
.
ooxml
;
import
java.io.File
;
import
org.openoffice.test.OfficeFileUrl
;
import
org.openoffice.test.Argument
;
final
class
TestDocument
{
public
static
String
getUrl
(
String
name
)
{
return
OfficeFileUrl
.
getAbsolute
(
new
File
(
Argument
.
get
(
"tdoc"
),
name
));
}
private
TestDocument
()
{}
}
writerfilter/qa/cppunittests/doctok/testdoctok.cxx
Dosyayı görüntüle @
477e19d2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment