Changes between Version 9 and Version 10 of EFLWebKitTests


Ignore:
Timestamp:
Aug 6, 2012 7:39:44 AM (9 years ago)
Author:
tmpsantos@gmail.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EFLWebKitTests

    v9 v10  
    5353 * If you are testing a functionality that depends on a feature flag, make sure to wrap your tests around the same flag. Otherwise the test might fail or break the build when the feature is disabled.
    5454
     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
    5561== Running the tests ==
    5662