On 04/22/2013 12:15 AM, Patrick Wang wrote:
1. test scripts cannot be
stored in a separate file, because marionette client only pushes the
script that opens the iframe to emulator, the real test script is not
accessible if it is in another file.

I believe to do this you have to a) call marionette.switch_to_frame(<frame id>) and then b) marionette.execute_script(<your test script>)

2. the iframe didn't grant
permission to use some API (navigator.mobileconnection for example).

Not sure about this one, but it seems intentional. Some of the QA folks are using mochitests for permissions testing and they had to jump through numerous hoops in order to get the right permissions set up for their test contexts. In the end we had to check in a special certified app into the gaia repo.

Andrew


_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to