Bump version to 6.4.7.2.M8
[LibreOffice.git] / basic / qa / basic_coverage / test_equalunoobjects_method.vb
blobb48111546cb3d47547f0875675a7c606b1988ac5
1 ' This file is part of the LibreOffice project.
3 ' This Source Code Form is subject to the terms of the Mozilla Public
4 ' License, v. 2.0. If a copy of the MPL was not distributed with this
5 ' file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 Function doUnitTest as Integer
9 ' EqualUnoObjects
10 ' Copy of objects -> same instance
11 oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )
12 oIntro2 = oIntrospection
13 If ( EqualUnoObjects( oIntrospection, oIntro2 ) = False ) Then
14 doUnitTest = 0
15 Else
16 ' Copy of structs as value -> new instance
17 Dim Struct1 as new com.sun.star.beans.Property
18 Struct2 = Struct1
19 If ( EqualUnoObjects( Struct1, Struct2 ) ) Then
20 doUnitTest = 0
21 Else
22 doUnitTest = 1
23 End If
24 End If
25 End Function