Added test case using Cordova 6.3.0 (Featherweight DVHMA).
This commit is contained in:
parent
8fe6a2e61e
commit
76104c8e9c
Binary file not shown.
|
@ -28,6 +28,7 @@ import eu.aniketos.dasca.crosslanguage.builder.FilterJSFrameworks
|
||||||
import scala.collection.mutable.LinkedHashSet
|
import scala.collection.mutable.LinkedHashSet
|
||||||
import com.ibm.wala.classLoader.IMethod
|
import com.ibm.wala.classLoader.IMethod
|
||||||
import eu.aniketos.dasca.crosslanguage.tests.apps.Featherweight_100_350_Info
|
import eu.aniketos.dasca.crosslanguage.tests.apps.Featherweight_100_350_Info
|
||||||
|
import eu.aniketos.dasca.crosslanguage.tests.apps.Featherweight_100_630_Info
|
||||||
|
|
||||||
object TestDriver {
|
object TestDriver {
|
||||||
def main(args: Array[String]): Unit = {
|
def main(args: Array[String]): Unit = {
|
||||||
|
@ -47,7 +48,8 @@ object TestDriver {
|
||||||
|
|
||||||
val infos = List(
|
val infos = List(
|
||||||
FeatherweightInfo,
|
FeatherweightInfo,
|
||||||
Featherweight_100_350_Info
|
Featherweight_100_350_Info,
|
||||||
|
Featherweight_100_630_Info
|
||||||
)
|
)
|
||||||
|
|
||||||
for (info <- infos if (new File(apkDir, info.getApkName)).isFile()) {
|
for (info <- infos if (new File(apkDir, info.getApkName)).isFile()) {
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*
|
||||||
|
* (C) Copyright 2010-2015 SAP SE.
|
||||||
|
* 2016 The University of Sheffield.
|
||||||
|
*
|
||||||
|
* All rights reserved. This program and the accompanying materials
|
||||||
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
|
* which accompanies this distribution, and is available at
|
||||||
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
package eu.aniketos.dasca.crosslanguage.tests.apps
|
||||||
|
|
||||||
|
import java.io.File
|
||||||
|
|
||||||
|
import scala.collection.mutable.ListBuffer
|
||||||
|
|
||||||
|
import eu.aniketos.dasca.crosslanguage.tests.AppInfo
|
||||||
|
import eu.aniketos.dasca.crosslanguage.util.JavaScriptSourceLocation
|
||||||
|
import eu.aniketos.dasca.crosslanguage.util.JavaSourceLocation
|
||||||
|
import eu.aniketos.dasca.crosslanguage.util.SourceLocation
|
||||||
|
|
||||||
|
object Featherweight_100_630_Info extends AppInfo {
|
||||||
|
def getApkName: String = "de.zertapps.dvhma.featherweight_1.0.0_6.3.0_debug.apk"
|
||||||
|
|
||||||
|
def getExpectedConnections: List[(SourceLocation, SourceLocation)] = {
|
||||||
|
val list = new ListBuffer[(SourceLocation, SourceLocation)]()
|
||||||
|
|
||||||
|
list += ((new JavaSourceLocation(43, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(31, 12, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(145, "de/zertapps/dvhma/plugins/storage/DVHMAStorage"), new JavaScriptSourceLocation(79, 1, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(126, "de/zertapps/dvhma/plugins/storage/DVHMAStorage"), new JavaScriptSourceLocation(79, 1, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(49, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(26, 58, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(49, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(25, 51, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(52, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(31, 12, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(36, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(31, 12, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(85, "de/zertapps/dvhma/plugins/storage/DVHMAStorage"), new JavaScriptSourceLocation(79, 1, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(62, "de/zertapps/dvhma/plugins/storage/DVHMAStorage"), new JavaScriptSourceLocation(48, 21, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(62, "de/zertapps/dvhma/plugins/storage/DVHMAStorage"), new JavaScriptSourceLocation(70, 25, "www/js/index.js")))
|
||||||
|
list += ((new JavaScriptSourceLocation(8, 12, "www/plugins/de.zertapps.dvhma.plugins.webintent/www/webintent.js"), new JavaSourceLocation(28, "com/borismus/webintent/WebIntent")))
|
||||||
|
list += ((new JavaScriptSourceLocation(25, 12, "www/plugins/de.zertapps.dvhma.plugins.storage/www/DVHMA-Storage.js"), new JavaSourceLocation(43, "de/zertapps/dvhma/plugins/storage/DVHMAStorage")))
|
||||||
|
list += ((new JavaScriptSourceLocation(21, 12, "www/plugins/de.zertapps.dvhma.plugins.storage/www/DVHMA-Storage.js"), new JavaSourceLocation(43, "de/zertapps/dvhma/plugins/storage/DVHMAStorage")))
|
||||||
|
list += ((new JavaScriptSourceLocation(17, 12, "www/plugins/de.zertapps.dvhma.plugins.storage/www/DVHMA-Storage.js"), new JavaSourceLocation(43, "de/zertapps/dvhma/plugins/storage/DVHMAStorage")))
|
||||||
|
list += ((new JavaScriptSourceLocation(29, 12, "www/plugins/de.zertapps.dvhma.plugins.storage/www/DVHMA-Storage.js"), new JavaSourceLocation(43, "de/zertapps/dvhma/plugins/storage/DVHMAStorage")))
|
||||||
|
list += ((new JavaSourceLocation(43, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(37, 8, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(36, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(37, 8, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(52, "com/borismus/webintent/WebIntent"), new JavaScriptSourceLocation(37, 8, "www/js/index.js")))
|
||||||
|
list += ((new JavaSourceLocation(62, "de/zertapps/dvhma/plugins/storage/DVHMAStorage"), new JavaScriptSourceLocation(79, 1, "www/js/index.js")))
|
||||||
|
list.toList
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue