~abreu-alexandre/unity-webapps-qml/location-specific-homepage

« back to all changes in this revision

Viewing changes to tests/unit/test_qml/tst_api_launchEmbeddedUI.html

Improve paramater passing to launchEmbedded UI Fixes: #1417776
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
 
 
3
<head>
 
4
<script>
 
5
 
 
6
function callback() {}
 
7
 
 
8
window.onload = function() {
 
9
    document.addEventListener('launchEmbeddedUI', function(e) {
 
10
        var api = external.getUnityObject('1.0');
 
11
        api.launchEmbeddedUI('embeddedUI', callback, { fileToShare: "me", p: "you", q: "them" })
 
12
    })
 
13
}
 
14
 
 
15
</script>
 
16
</head>
 
17
 
 
18
<body>
 
19
</body>
 
20
 
 
21
</html>