[Filesystem] Fixed implementation of readAsText().
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 8 Jun 2015 12:14:42 +0000 (14:14 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 8 Jun 2015 12:14:42 +0000 (14:14 +0200)
commit26f624eb1dacf112729580f45fd21858ac489ca7
treedabde08f4a19089eb64a9a7708efda4e54081b71
parent256d5a9105aefbf2565e208f7a50103c384b0855
[Filesystem] Fixed implementation of readAsText().

Read operation is now performed asynchronously on main thread.
Recursive call removed.

[Verification] Pass rate: 289/289.
Warning: Due to nature of implementation and current architecture, the test
File_readAsText_with_encoding may block. If there are large files present in
/opt/usr/media/Documents/ folder (i.e. created by Download test suite) the test
will not be able to finish in time.

Change-Id: I031ac1d7c6d3ab223a0f93a0788938d5067b8a8c
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/filesystem/js/file.js