Jacek Migdal
32d20b4aa7
Port more tests from webpage-spec.
...
https://github.com/ariya/phantomjs/issues/12439
2014-12-11 20:38:35 -08:00
Jacek Migdal
0bf14a3d0c
Don't rely on JSON.parse() for page.evaluate().
...
https://github.com/ariya/phantomjs/issues/12615
2014-12-10 22:53:53 -08:00
Jacek Migdal
3b8282cb2e
Port the tests from webpage-spec.js
...
Callback, clip-rect, confirm, object, prompt, scroll-position,
viewport-size and window.
https://github.com/ariya/phantomjs/issues/12439
2014-12-07 16:59:11 -08:00
Zack Weinberg
50ae50e871
Add a command-line option --local-urls={true,false}
...
The default is 'true'. When set 'false', file: and qrc: URLs are
treated as invalid (unknown scheme) rather than opening local files,
as requested in issue #12752 .
In order to test this, I added a mechanism to test/run-tests.py
allowing individual tests to be annotated with command-line
options to pass to phantomjs or the script.
2014-11-21 15:51:35 +00:00
Ariya Hidayat
eddb0db1d2
Port the tests for mousedown, mouseup, and mousemove events.
...
https://github.com/ariya/phantomjs/issues/12439
2014-10-10 06:40:42 -07:00
Ariya Hidayat
619225b1da
Port the tests of keyup, keydown, and keypress events.
...
https://github.com/ariya/phantomjs/issues/12439
2014-10-09 07:16:59 -07:00
Ariya Hidayat
ce66f290c3
Port the test of web page's zoom factor.
...
https://github.com/ariya/phantomjs/issues/12439
2014-10-08 06:51:16 -07:00
Ariya Hidayat
2cbb695490
Port the tests of the web page's setContent().
...
https://github.com/ariya/phantomjs/issues/12439
2014-10-02 22:31:49 -07:00
Ariya Hidayat
b68d9467a7
Port the tests of the cookiejar module.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-30 22:00:53 -07:00
Ariya Hidayat
7e8986cd3e
Port test tests of CJK codecs.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-28 22:39:20 -07:00
Ariya Hidayat
7bcb9a8725
Add a test to demonstrate the problem with JSON-ification.
...
https://github.com/ariya/phantomjs/issues/12615
2014-09-27 13:22:12 -07:00
Ariya Hidayat
5768b705a0
Implement clearMemoryCache() on a web page to clear the cache.
...
Unfortunately, due to Qt and WebKit limitation, this is technically
clearing all the cache used by every web page instance. It is the
best we can have right now.
https://github.com/ariya/phantomjs/issues/10357
2014-09-25 07:09:33 -07:00
Ariya Hidayat
105bcb32a9
Fix the mismatch of test files and their contents.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-24 21:49:26 -07:00
Ariya Hidayat
639e09bd3a
Provide OS kernel version in system.os.
...
This is available via the new property called `release`. A very simple
example to demonstrate it:
var system = require('system');
console.log('Kernel release', system.os.release);
which will print (on OS X 10.7.5 Lion):
Kernel release 11.4.2
https://github.com/ariya/phantomjs/issues/12587
2014-09-21 23:47:57 -07:00
Ariya Hidayat
7c61f8857d
Port the tests of web page properties and functions.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-18 23:17:21 -07:00
Ariya Hidayat
b36da277e9
Port the user agent test.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-17 21:57:42 -07:00
Ariya Hidayat
83f4baf8c6
Port the test to check for plugin non-existence.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-14 09:35:41 -05:00
Ariya Hidayat
f85238322e
Port the test to change the encoded URL of network request.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-13 20:00:21 -05:00
Ariya Hidayat
3b972fbfbb
Port the test to change the URL of network request.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-12 23:29:40 -05:00
Ariya Hidayat
dca6f77a36
Port the test for onRepaintRequested handler.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-11 09:57:07 -07:00
Ariya Hidayat
d52df7a1cf
Port the test to abort network request.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-11 09:57:03 -07:00
Ariya Hidayat
f95ef19fcb
Port the test to check for resource received upon error.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-10 21:29:07 -07:00
Ariya Hidayat
f29b76bb7f
Port the test for resource request error handling.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-09 23:08:16 -07:00
Ariya Hidayat
f20835735c
Port custom headers testing of web page.
...
The HTTP server launched by the test runner has a new endpoint called
/echo. This simply echoes back some information (current on the made
request, in the future it will be expanded to further information)
formatted as JSON. This echo system facilitates easy testing for request
header manipulation feature.
https://github.com/ariya/phantomjs/issues/12439
2014-09-07 21:13:59 -07:00
Ariya Hidayat
2c10f6095b
Port loading tests of web page.
...
https://github.com/ariya/phantomjs/issues/12439
2014-09-06 22:58:02 -07:00