Closed
Bug 1225202
Opened 10 years ago
Closed 10 years ago
Enable test_fileapi_slice.html with e10s
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
3.59 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
4.80 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
6.01 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
3.26 KB,
patch
|
Details | Diff | Splinter Review |
This is a continuation of bug 1224338. There are some more tests that need to be converted to use SpecialPowers.createFiles().
dom/base/test/test_fileapi_slice.html: This tests calls createFileWithData() from fileutils.js. I tried to convert it in the obvious way but it was failing to finish for some reason. I don't know if I was just exposing an existing race or causing one.
dom/base/test/test_mozfiledataurl.html: This tests has a getFile() method that uses getMyDirectory.sjs to create a File() relative to the test directory, rather than the profile directory, then loads some files. SpecialPowers.createFile() may need to be altered to handle this case.
Updated•10 years ago
|
Blocks: e10s-tests
tracking-e10s:
--- → +
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → continuation
Summary: Enable more DOM tests that use files in e10s → Enable test_fileapi_slice.html with e10s
Assignee | ||
Comment 1•10 years ago
|
||
imageLoadHandler, testBinaryData, fileData and size are used by all of
the subtests, so move their declarations earlier so they will remain
at the global scope when we start splitting scopes in preparation for
supporting asynchronous file creation.
memFile is only used in one subtest, so move it later.
code earlier that we want at the global scope
also move memFile down, which we don't want at the global scope
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=fda4ac8a7b95
Attachment #8689540 -
Flags: review?(amarchesini)
Assignee | ||
Comment 2•10 years ago
|
||
I'll attach a -w diff, too.
The files are put into single element arrays to prepare for the
SpecialPowers createFiles API.
Attachment #8689541 -
Flags: review?(amarchesini)
Assignee | ||
Comment 3•10 years ago
|
||
This makes the test work with e10s enabled.
Remove createFileWithData from fileutils.js which is no longer used.
Attachment #8689543 -
Flags: review?(amarchesini)
Assignee | ||
Comment 4•10 years ago
|
||
Most of the patch is whitespace changes, so it is easier to see what is happening in this version.
Updated•10 years ago
|
Attachment #8689540 -
Flags: review?(amarchesini) → review+
Updated•10 years ago
|
Attachment #8689541 -
Flags: review?(amarchesini) → review+
Updated•10 years ago
|
Attachment #8689543 -
Flags: review?(amarchesini) → review+
Comment 6•10 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/65666cb5ed18
https://hg.mozilla.org/mozilla-central/rev/1da4e6787443
https://hg.mozilla.org/mozilla-central/rev/e7fa9a0b61f6
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•