forked from joejulian/gio
8d1e53cfa9
It passes the whole e2e test flow on my real device, a OnePlus 5 running LineageOS 16.0 (Android 9). I was also successful at running it against an x86-64 Android 8.0 emulator, but I'm not including any of that just yet. A patch later this week will include a piece of code to set up and start an emulator, which CI can then use to run the test. Also stop requiring the screen dimensions to be enforced when running in non-headless mode. An Android emulator can run at an arbitrary resolution, and even in headless mode, but a real Android device will have its own predefined resolution. Forcing the test user to set the -headless=false flag to not get annoying "unexpected dimensions" errors would be annoying. That check doesn't really mean much, as our test app doesn't care about the screen resolution. And we were only doing the check sometimes. Drop it entirely, making the resolution parameters merely a hint so that we can keep the drivers a bit more consistent. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>