| 55 | == Accessing web pages inside a test == |
| 56 | |
| 57 | * As a rule of thumb, you test should rely only on locally available resources, not fetching any webpage remotely. |
| 58 | * Some tests might need a Webserver to run. In this case, you can use the EWK2UnitTestServer class that will spawn a minimalistic Webserver. This server works by registering a callback for handling the requests. See the [source:trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp test_ewk2_cookie_manager.cpp] test for more details. |
| 59 | * Alternatively, if file scheme can be used, your test webpage can be stored at [source:trunk/Source/WebKit2/UIProcess/API/efl/tests/resources tests/resources] and retrieved by using environment->urlForResource("somepage.html"). |
| 60 | |