Commit graph

3774 commits

Author SHA1 Message Date
Ravi Shankar
afb9b0707b Testing cancellation during redirects 2015-11-14 10:04:32 +05:30
David Raifaizen
aa601be329 Adding method to detect if image formats should be supported by servo 2015-11-13 19:01:44 -05:00
Michael Howell
4aa26b682b Add test for #7780. 2015-11-13 13:53:04 -07:00
Ralph Giles
135bcacee4 Use the correct .png extension for the image placeholder.
This was changed to the mozilla broken image resource
without changing the filename, even though the file
type changed.
2015-11-13 11:45:09 -08:00
bors-servo
9bcaedde82 Auto merge of #8514 - Ms2ger:test-ref, r=Manishearth
Use wptrunner for some old-style reftests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8514)
<!-- Reviewable:end -->
2015-11-13 22:31:18 +05:30
Martin Robinson
20701e564a Re-print test failures in non-interactive WPT UI
This will make it easier to spot the failures at the bottom of the test
output on the bots.

Fixes #8467.
2015-11-13 08:32:07 -08:00
bors-servo
0735cec351 Auto merge of #6935 - jdm:sslverify, r=Manishearth
Make SSL cert verification errors work again. Add a horrible, no-good…

…, very bad regression test.

Here are the list of awful things this test exploits:
- Servo can't load HTTPS content in WPT tests (#6919)
- Our web workers don't report error events to the parent worker object after the initial network load completes
- Our worker resource load don't have a same-origin check

The good news is that this test should start failing if any of those "features" change, so this should not silently break on us.

Other attempts to test this included:
- iframes (didn't work because of #6672 and #3939)
- XMLHttpRequest (I was hit by CORS, I think; maybe I could have made it work if I returned the right headers)

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6935)
<!-- Reviewable:end -->
2015-11-13 22:00:57 +05:30
Josh Matthews
5e123df7a7 Make SSL cert verification errors work again. Add a horrible, no-good, very bad regression test. 2015-11-13 11:30:38 -05:00
Manish Goregaokar
c11b756973 Add tests for get/set/removeAttributeNode()
Fixes https://github.com/w3c/web-platform-tests/issues/2262
2015-11-13 20:21:33 +05:30
Ms2ger
6ef1f559e0 Move linear_gradients_smoke_a.html to wpt reftests. 2015-11-13 14:52:46 +01:00
Ms2ger
d0b7f1628b Move linear_gradients_corners_a.html to wpt reftests. 2015-11-13 14:42:12 +01:00
Ms2ger
1948b6914e Move line_height_a.html to wpt reftests. 2015-11-13 12:28:09 +01:00
Ms2ger
45d0fecb89 Move legacy_td_width_attribute_a.html and legacy_th_width_attribute_a.html to wpt reftests. 2015-11-13 12:03:50 +01:00
Ms2ger
86ab0eb860 Move legacy_cellspacing_attribute_a.html to wpt reftests. 2015-11-13 10:31:20 +01:00
Corey Farwell
765ade6892 Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement' 2015-11-13 00:47:20 -05:00
bors-servo
62acdd303b Auto merge of #8477 - asajeffrey:opaque-domstring, r=asajeffrey
Opaque DOMString

This patch makes DOMString an opaque wrapper round String (currently it's a transparent wrapper).

The changes are:

* Replacing DOMString(foo) by DOMString::from(foo).
* Replacing foo.0 by String::from(foo).
* Adding functions clear, push_str and extend for in-place mutation of DOMStrings.
* Replacing DOMString by String in other threads (devtools, storage and filereader).
* Making DOMString implement !Send.
* Removing the pub attribute from the contents of DOMString.

This enables experimenting with other string representations in the DOM.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8477)
<!-- Reviewable:end -->
2015-11-13 07:17:30 +05:30
bors-servo
e63b1e83d4 Auto merge of #8147 - nox:weakref, r=Ms2ger
Implement weak-referenceable JS-managed objects

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8147)
<!-- Reviewable:end -->
2015-11-13 06:22:40 +05:30
Alan Jeffrey
84bde75b42 Replaced DOMString constructor by conversion functions.
Replaced DOMString(...) by DOMString::from(...).
Replaced ....0 by String::from(...).
Removed any uses of .to_owner() in DOMString::from("...").
2015-11-12 17:52:59 -06:00
bors-servo
c44c73aa00 Auto merge of #8498 - nox:fix-variadic-and-default-arguments, r=jdm
Properly handle variadic arguments preceded by default values

I broke that in #8197.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8498)
<!-- Reviewable:end -->
2015-11-13 04:22:11 +05:30
Josh Matthews
c4c0809934 Add test for OnErrorEventHandler special case. 2015-11-12 16:21:24 -05:00
Josh Matthews
2340583e56 Differentiate between error and non-error event handlers per the spec. 2015-11-12 16:21:24 -05:00
Anthony Ramine
d4ce25d07c Properly handle variadic arguments preceded by default values
I broke that in #8197.
2015-11-12 21:10:45 +01:00
bors-servo
022b06e564 Auto merge of #8494 - jdm:disablewebgl, r=Manishearth
Disable WebGL tests on mac due to #8486.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8494)
<!-- Reviewable:end -->
2015-11-12 23:49:39 +05:30
Josh Matthews
de70ae0c81 Disable WebGL tests on mac due to #8486. 2015-11-12 12:31:52 -05:00
bors-servo
e394c0d859 Auto merge of #7646 - jxs:master, r=jdm
Write unit tests for cookie isolation

closes #7624

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7646)
<!-- Reviewable:end -->
2015-11-12 20:20:32 +05:30
João Oliveira
79fcd1da95 Write unit tests for cookie isolation 2015-11-12 14:12:08 +00:00
bors-servo
4848e37e2e Auto merge of #7844 - Wafflespeanut:requests, r=jdm
Cancelable network requests!

fixes #4974

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7844)
<!-- Reviewable:end -->
2015-11-12 18:59:58 +05:30
Anthony Ramine
72c67efe96 Introduce trait WeakReferenceable
This allows to take weak references of JS-managed DOM objects.
2015-11-12 12:51:50 +01:00
Ravi Shankar
c4cf72db6e Added support for synchronization along with an unit test for cancellation listener 2015-11-12 14:04:38 +05:30
Ravi Shankar
10f5584f78 Implement cancellation listener for cancelling network requests 2015-11-12 14:02:59 +05:30
bors-servo
efc31e619d Auto merge of #8376 - mrobinson:fix-inlines, r=pcwalton
Properly make stacking contexts for inlines

Instead of making a stacking context out of inline fragments parent
flow, make the inline fragment itself the stacking context. This fixes
positioning and rendering of these sort of fragments and prevents
over-layerization.

Fixes #7424.
Fixes #5812.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8376)
<!-- Reviewable:end -->
2015-11-12 12:26:39 +05:30
Martin Robinson
d572f1ca05 Properly make stacking contexts for inlines
Instead of making a stacking context out of inline fragments parent
flow, make the inline fragment itself the stacking context. This fixes
positioning and rendering of these sort of fragments and prevents
over-layerization.

Fixes #7424.
Fixes #5812.
2015-11-11 14:42:18 -08:00
Emilio Cobos Álvarez
75ecb67e62 webgl: Add test for getSupportedExtensions 2015-11-11 17:18:28 +01:00
Anthony Ramine
acb13dc899 Support variadic interface arguments (fixes #8159)
We use a RootedVec value in codegen, of which we use the `r()` method to
pass `&[&T]` to the interface methods.
2015-11-11 14:52:21 +01:00
bors-servo
aa105d89b4 Auto merge of #8463 - simartin:issue_8413, r=Ms2ger
Issue #8413: Enable webgl tests in web-platform-test.

Fixes #8413.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8463)
<!-- Reviewable:end -->
2015-11-11 17:04:06 +05:30
Simon Martin
e5329307b2 Issue #8413: Enable webgl tests in web-platform-test. 2015-11-11 09:02:05 +01:00
benshu
d27a3244f2 XHR timeouts use same abstraction as scripts timers. (fixes #3396) 2015-11-11 00:52:34 +01:00
bors-servo
13226f8472 Auto merge of #8381 - bholley:attr_restyle_hints, r=pcwalton
Implement attribute restyle hints

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8381)
<!-- Reviewable:end -->
2015-11-11 01:27:45 +05:30
Bobby Holley
5d859568cf Update test expectations. 2015-11-10 11:57:27 -08:00
Bobby Holley
a79f6e43a0 Tests. 2015-11-10 11:57:26 -08:00
bors-servo
8e80e38c78 Auto merge of #8456 - mrobinson:wpt-fixes, r=jgraham
Fix some issues with the WPT UI output

When running in non-interactive mode, print test names as they are run.
This prevent timeouts on the bots, which are detected by watching for
output from the test runner.

When running in iTerm.app don't use the multi-line status line, as the
carriage return is not processed properly. Instead use a single-line
output with the last test run and then backspace characters to keep it
up to date.

Fixes #8368.
Fixes #8395.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8456)
<!-- Reviewable:end -->
2015-11-10 22:32:03 +05:30
Martin Robinson
75f8963d63 Fix some issues with the WPT UI output
When running in non-interactive mode, print test names as they are run.
This prevent timeouts on the bots, which are detected by watching for
output from the test runner.

When running in iTerm.app don't use the multi-line status line, as the
carriage return is not processed properly. Instead use a single-line
output with the last test run and then backspace characters to keep it
up to date.

Fixes #8368.
Fixes #8395.
2015-11-10 08:24:50 -08:00
bors-servo
fb00e6143f Auto merge of #8452 - Ms2ger:test-ref, r=frewsxcv
Use wptrunner for some old-style reftests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8452)
<!-- Reviewable:end -->
2015-11-10 19:27:18 +05:30
Ms2ger
866eb0551e Move jpeg_normal.html and jpeg_progressive.html to wpt reftests. 2015-11-10 14:03:33 +01:00
Ms2ger
eb882403fb Move inset_blackborder.html and outset_blackborder.html to wpt reftests. 2015-11-10 12:35:01 +01:00
Ms2ger
17cdd1769d Move input_height_a.html to wpt reftests. 2015-11-10 12:25:47 +01:00
Ms2ger
17376dd96b Move inline_whitespace_a.html and inline_whitespace_b.html to wpt reftests. 2015-11-10 12:15:38 +01:00
Ms2ger
3ed4e62057 Move inline_block_parent_width.html and inline_block_parent_width_percentage.html to wpt reftests. 2015-11-10 11:36:54 +01:00
Ms2ger
cfbe639e79 Move inline_block_margin_auto_a.html to wpt reftests. 2015-11-10 11:23:39 +01:00
Ms2ger
7d376bfe81 Move inline_background_a.html to wpt reftests. 2015-11-10 11:16:10 +01:00