Unit test: check for phantom.outputEncoding.

1.3
Ariya Hidayat 2011-08-20 22:56:08 -07:00
parent 7a0bd2a569
commit ba41180fa1
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,14 @@ describe("phantom global object", function() {
expect(phantom.scriptName.length).toNotEqual(0);
});
it("should have outputEncoding property", function() {
expect(phantom.hasOwnProperty('outputEncoding')).toBeTruthy();
});
it("should have the default outputEncoding to System", function() {
expect(phantom.outputEncoding).toEqual('System');
});
it("should have version property", function() {
expect(phantom.hasOwnProperty('version')).toBeTruthy();
});