Commit graph

3774 commits

Author SHA1 Message Date
bors-servo
efb145e744 Auto merge of #9139 - nox:enable-canvas-compositing-globalcompositeoperation-001, r=frewsxcv
Enable canvas_compositing_globalcompositeoperation_001.htm (fixes #5803)

This always pass now.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9139)
<!-- Reviewable:end -->
2016-01-03 20:32:34 +05:30
bors-servo
e13a25d022 Auto merge of #9133 - nox:enable-xmlhttprequest-timeout-worker-twice, r=jdm
Enable xmlhttprequest-timeout-worker-twice.html (fixes #4041)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9133)
<!-- Reviewable:end -->
2016-01-03 17:16:37 +05:30
bors-servo
8cecf4de92 Auto merge of #9129 - frewsxcv:update-wpt-return-code, r=jgraham
Fix incorrect return code for 'update-wpt' mach command

`mach update-wpt` should return 1 if it exits in an unclean state

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9129)
<!-- Reviewable:end -->
2016-01-03 15:19:31 +05:30
bors-servo
336bbd67ba Auto merge of #9141 - nox:enable-canvas-complexshapes, r=jdm
Enable canvas_complexshapes_*_001.htm (fixes #6748, #6780)

Serde landed bincode support, so we can probably enable these again.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9141)
<!-- Reviewable:end -->
2016-01-03 13:56:04 +05:30
Manish Goregaokar
539ee18cf0 Add reftest for whitespace in <input> and <textarea> 2016-01-03 13:19:48 +05:30
Manish Goregaokar
77628df0b2 Add frewscxv's regression test for whitespace in <input> 2016-01-03 13:18:27 +05:30
bors-servo
0d3ff45f05 Auto merge of #9140 - nox:enable-canvas-state-restore-001, r=jdm
Enable canvas_state_restore_001.htm (fixes #5764)

The test now always pass.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9140)
<!-- Reviewable:end -->
2016-01-03 13:17:38 +05:30
bors-servo
1b0053f8b1 Auto merge of #9136 - frewsxcv:htmlbodyelement-background, r=nox
HTMLBodyElement 'background' attribute improvements

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9136)
<!-- Reviewable:end -->
2016-01-03 11:00:49 +05:30
bors-servo
7f156b8c12 Auto merge of #9072 - Manishearth:password-placeholder, r=eefriedman
Fix placeholders for password inputs

currently they show dots instead of the placeholder text

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9072)
<!-- Reviewable:end -->
2016-01-03 10:21:26 +05:30
Anthony Ramine
8625ff555b Enable canvas_complexshapes_*_001.htm (fixes #6748, #6780)
Serde landed bincode support, so we can probably enable these again.
2016-01-03 04:28:21 +01:00
Anthony Ramine
88a3dde3c4 Enable canvas_state_restore_001.htm (fixes #5764)
The test now always pass.
2016-01-03 03:01:39 +01:00
Anthony Ramine
ad45043ddf Enable canvas_compositing_globalcompositeoperation_001.htm (fixes #5803) 2016-01-03 02:54:09 +01:00
Anthony Ramine
8727412e3f Enable /canvas_linestyles_linecap_001.htm (fixes #5714)
CanvasDrawingStyles.lineCap was implemented and the test passes now.
2016-01-03 02:48:31 +01:00
bors-servo
1ac330837f Auto merge of #9130 - iszak:issue-9081, r=nox
Fixes https://github.com/servo/servo/issues/9081

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9130)
<!-- Reviewable:end -->
2016-01-03 06:27:54 +05:30
bors-servo
debafc127d Auto merge of #9126 - nox:enable-document-lastModified-01, r=jdm
Enable document-lastModified-01.html (fixes #3228)

The test has been fixed.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9126)
<!-- Reviewable:end -->
2016-01-03 05:49:42 +05:30
Corey Farwell
9a1fd472ab Implement 'background' IDL attribute on <body> 2016-01-02 15:42:25 -08:00
Iszak Bryan
1fa3d36167 Store state of fill or style for canvas pattern 2016-01-02 23:35:04 +00:00
Corey Farwell
f87d2c1df7 Fix incorrect return code for 'update-wpt' mach command
`mach update-wpt` should return 1 if it exits in an unclean state
2016-01-02 14:03:13 -08:00
Anthony Ramine
5cb681007f Enable xmlhttprequest-timeout-worker-twice.html (fixes #4041) 2016-01-02 20:18:53 +01:00
Anthony Ramine
482dddcaa4 Enable xmlhttprequest-timeout-worker-overrides.html (fixes #3887) 2016-01-02 19:32:55 +01:00
Anthony Ramine
b50839e3d5 Enable document-lastModified-01.html (fixes #3228)
The test has been fixed.
2016-01-02 19:24:51 +01:00
Anthony Ramine
0032fdce3b Enable again /the-input-element/type-change-state.html.ini (fixes #3657)
It doesn't seem to intermittently timeout anymore.
2016-01-02 19:21:15 +01:00
bors-servo
7a5522a263 Auto merge of #9049 - KiChjang:form-data-refactor, r=eefriedman
Refactor FormData code to match updated spec

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9049)
<!-- Reviewable:end -->
2016-01-01 21:37:09 +05:30
bors-servo
11d160fc73 Auto merge of #9109 - nerith:createpattern, r=jdm
Support empty strings as the repeat argument (CreatePattern)

According to the third step in the specification [1], createPattern
should let the repetition argument be "repeat" when it is the empty
string.

The code in CanvasRenderingContext2D::CreatePattern did not implement
this step and instead threw a SyntaxError exception when an empty
string was supplied as the repetition argument.

Fixes #9079.

[1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9109)
<!-- Reviewable:end -->
2016-01-01 21:04:51 +05:30
Keith Yeung
7001583047 Refactor FormData code to match updated spec
Use Atoms instead of Strings as keys
2016-01-01 05:38:10 -08:00
askalski
715fbd76c0 added tests to http_loader, veryfing if redirects use correct cookies 2015-12-31 22:23:23 +01:00
bors-servo
61314f5253 Auto merge of #9104 - vwvww:issue_9098, r=nox
Refactor AssertRequestsMustNotHaveHeaders

Improve correctness of AssertRequestMustNotHaveHeaders tests
 - Changed AssertRequestsMustNotHaveHeaders to AssertRequestMustNotIncudeHeaders
 - Added an assertion that headers_not_expected is not empty

tested by command
./mach test unit
and all passed.

resolves #9098

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9104)
<!-- Reviewable:end -->
2016-01-01 02:20:05 +05:30
Brandon Fairchild
1ccab328f9 Support empty strings as the repeat argument (CreatePattern)
According to the third step in the specification [1], createPattern
should let the repetition argument be "repeat" when it is the empty
string.

The code in CanvasRenderingContext2D::CreatePattern did not implement
this step and instead threw a SyntaxError exception when an empty
string was supplied as the repetition argument.

Fixes #9079.

[1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern
2015-12-31 11:48:15 -05:00
bors-servo
af1690f303 Auto merge of #8190 - jdm:4138, r=eefriedman
Implemementing context-based MIME type sniffing

This is a rebase of #7842 that also adds a test.
Fixes #4183.

@Yoric, how's this look to you?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8190)
<!-- Reviewable:end -->
2015-12-31 21:13:10 +05:30
bors-servo
2bea29361b Auto merge of #9018 - jdm:corstests, r=Manishearth
Enable cors/ directory for WPT.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9018)
<!-- Reviewable:end -->
2015-12-31 19:40:41 +05:30
Josh Matthews
6ba66f43cf Add a test for contextual MIME sniffing. 2015-12-31 07:45:49 -05:00
David Rajchenbach-Teller
1e81b8c133 Resolves #4183 - Implemementing context-based MIME type sniffing
The version of the standard is not finalized at the time of this writing.
Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
2015-12-31 07:45:03 -05:00
bors-servo
77b23d1bb9 Auto merge of #9105 - jdm:buttoneventsintermittent, r=nox
Implement support for modifying the type attribute of <button>

https://github.com/servo/servo/pull/9100

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9105)
<!-- Reviewable:end -->
2015-12-31 15:56:16 +05:30
Beomjin Kim
b90a836071 Refactor AssertRequestsMustNotHaveHeaders to AssertRequestMustNotIncludeHeaders
Improve correctness of AssertRequestMustNotHaveHeaders tests
resolves #9098
2015-12-31 13:05:09 +09:00
Josh Matthews
3ef39e1a30 Implement the onreset event handler. 2015-12-30 16:04:16 -05:00
Josh Matthews
ffc1c777fe Implement support for modifying the type attribute of button elements. Fixes #9091. 2015-12-30 16:04:05 -05:00
bors-servo
3d969e429d Auto merge of #7919 - 6112:master, r=nox
form submission for <textarea> and <select>

Fixes #7849.
Fixes #7850.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7919)
<!-- Reviewable:end -->
2015-12-30 23:58:40 +05:30
Josh Matthews
c7752bab63 Enable cors/ directory for WPT. 2015-12-30 10:33:43 -05:00
bors-servo
80135a70ce Auto merge of #9080 - jdm:canvaspattern, r=Ms2ger
Enable Pattern variant of CanvasFillOrStrokeStyle

This is a rebase of #8104, with a test added that exposes pre-existing problems in the canvas code for dealing with patterns.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9080)
<!-- Reviewable:end -->
2015-12-30 13:56:43 +05:30
Nicolas
1f234af2ac form submission for <textarea> and <select>
small changes from code review

!child.get_disabled_state() becomes child.get_enabled_state()
2015-12-30 00:27:35 -05:00
bors-servo
0f5c614609 Auto merge of #9051 - bholley:split_style_and_layout_wrappers, r=SimonSapin
Split layout wrappers into style+layout and layout-only functionality

This is a step towards removing the dependency of stylo on layout/.

This PR depends on #9004.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051)
<!-- Reviewable:end -->
2015-12-30 10:04:14 +05:30
bors-servo
0d52170f35 Auto merge of #9054 - frewsxcv:parse-non-zero-dimension, r=eefriedman
Implement non-zero dimension attribute parsing

Fixes #8445

The only attributes I found that we have implemented that uses non-zero
dimenion attributes:

* `width` for `<td>` and `<th>` (table cells)
* `width` for `<table>`

I updated these implementations to use the new non-zero dimension
attribute parsing and added associated regression tests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9054)
<!-- Reviewable:end -->
2015-12-30 05:26:56 +05:30
Bobby Holley
47059d2d26 Separate style+layout and layout-specific wrapper functionality.
This patch does a number of things, unfortunately all at once:
* Hoists a large subset of the layout wrapper functionality into the style system.
* Merges TElementAttributes into the newly-created TElement.
* Reorganizes LayoutData by style vs layout, and removes LayoutDataShared.
* Simplifies the API for borrowing style/layout data.

There's still more to do to make the style system usable standalone, but
this is a good start.
2015-12-29 11:50:03 -08:00
Josh Matthews
7693b03468 Make button elements activatable. Fixes #4837. Fixes #8101. 2015-12-29 10:45:04 -05:00
Josh Matthews
832942bc26 Add test for fillStyle/strokeStyle getting/setting roundtrips. 2015-12-29 10:38:02 -05:00
bors-servo
c1cb9403a7 Auto merge of #8948 - simartin:issue_8738, r=ecoal95
Issue #8738: bufferSubData and texImage2D argument sanity checks.

Fixes https://github.com/servo/servo/issues/8738

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8948)
<!-- Reviewable:end -->
2015-12-29 17:27:27 +05:30
Dongie Agnir
12afd837a0 Ask for reset when option is removed. 2015-12-27 21:47:13 -10:00
Manish Goregaokar
728ec11628 Add reftest for password placeholders 2015-12-27 12:38:09 +05:30
Manish Goregaokar
6a0ec85d43 Fix placeholders for password inputs
currently they show dots
2015-12-27 00:18:06 +05:30
Simon Martin
f2fe401d7d Issue #8738: bufferSubData and texImage2D argument sanity checks. 2015-12-26 18:56:48 +01:00