Commit graph

3197 commits

Author SHA1 Message Date
Simon Sapin
e5466a34c5 Move style crate unit tests into the unit_tests crate. 2015-04-08 01:07:52 +02:00
Simon Sapin
e27c967f81 Move net::resource_task unit tests into the unit_tests crate. 2015-04-08 01:07:51 +02:00
Simon Sapin
d88770e09f Move net::{data_loader,image_cache_task} unit tests into the unit_tests crate. 2015-04-08 01:07:50 +02:00
Patrick Walton
7a08a6c1ab layout: Position and size list images properly in the block direction.
Improves Wikipedia.
2015-04-07 15:42:52 -07:00
Patrick Walton
df9c0c7a26 layout: Remove the bogus
`assign_block_size_for_inorder_child_if_necessary` logic from table
wrapper flows.

As far as I can tell, this is a cut-and-paste of old buggy code from
block flows. Delegating to the correct block flow code fixes the sidebar
float placement on Guardians of the Galaxy.
2015-04-07 15:13:17 -07:00
Patrick Walton
c86bc2eb8b layout: Don't take collapsible top margin into account when determining
the float ceiling.

As the float ceiling is relative to the border box, not the margin box,
of the parent flow, top margin must not be included.

This exposed a pre-existing bug whereby margins are discarded if a block
contains only floats and no content, affecting the tests
`float_intrinsic_height.html` and `margins_inside_floats_a.html`. As a
workaround, some invisible content has been added to the bodies of both
tests.
2015-04-07 15:10:15 -07:00
Simon Sapin
691222696e Move net::cookie unit tests into the unit_tests crate. 2015-04-07 16:37:12 -04:00
Simon Sapin
e0b98a35c4 Move gfx unit tests to the unit_tests crate. 2015-04-07 16:37:12 -04:00
Simon Sapin
6d5406efc1 Move util crate unit tests into a new unit_tests crate 2015-04-07 16:37:11 -04:00
Anthony Ramine
eea80034e6 Implement NamedNodeMap::removeNamedItem*() 2015-04-07 22:34:56 +02:00
Anthony Ramine
33f2cd29fd Implement ParentNode attributes 2015-04-07 22:27:52 +02:00
Diego Marcos
88954e3e18 Implements drawImage for html image as ImageSource 2015-04-07 11:02:50 -07:00
bors-servo
c7e210f24c Auto merge of #5005 - jdm:mime-sniffing, r=jdm
This rebases and integrates #4209, removing the sniffer task (turns out it wasn't a great idea), and adds a `--sniff-mime-types` command line flag to enable sniffing for file:// and http:// resources. Tested against a random picture file on my harddrive. The actual MIME sniffing implementation can be extracted into a separate library separately.
2015-04-07 12:48:06 -05:00
Josh Matthews
23ae940abf Enable MIME sniffing for HTTP loads. 2015-04-07 13:25:15 -04:00
bors-servo
e521860a0e Auto merge of #5490 - nox:namednodemap, r=jdm 2015-04-07 09:31:20 -05:00
Mátyás Mustoha
6da2ce9b1b Canvas: added lineWidth support. 2015-04-07 16:10:29 +02:00
Anthony Ramine
5d58dc8f54 Implement NamedNodeMap::getNamedItem*() (fixes #5454) 2015-04-07 13:42:56 +02:00
bors-servo
07520de970 Auto merge of #5552 - pcwalton:block-formatting-context-cleared-floats, r=glennw
The speculated inline-size of the preceding floats was forced to zero at
the wrong time if the float was itself cleared, causing it to overwrite
the speculated value. Shuffling the code around a bit fixes the problem.

r? @glennw
2015-04-07 04:51:13 -05:00
bors-servo
1fd609d198 Auto merge of #5525 - dhodder:master, r=jdm
An empty DOM interface for HTMLDialogElement

r?
2015-04-07 02:50:04 -05:00
Tim Cuthbertson
2de05450df wpt: Update "running the tests manually" instructions 2015-04-07 16:51:11 +10:00
bors-servo
45b40d49a5 Auto merge of #5338 - ChrisParis:outerhtml, r=jdm
The first commit refactors the fragment parsing and innerHTML setter. This makes the code mirror the structure of the spec more closely, and also prepares for reusing code with the outerHTML setter.
2015-04-07 01:15:45 -05:00
bors-servo
d0acc33bf2 Auto merge of #5423 - yodalee:issue5397-location-pathname, r=jdm
issue #5397
2015-04-06 23:59:18 -05:00
Patrick Walton
e10af4fc98 layout: Correctly take the inline size of cleared floats into account
when estimating the inline size of block formatting contexts.

The speculated inline-size of the preceding floats was forced to zero at
the wrong time if the float was itself cleared, causing it to overwrite
the speculated value. Shuffling the code around a bit fixes the problem.
2015-04-06 17:59:14 -07:00
Nathan Climer
44930b0fb0 Implement MIME sniffing. 2015-04-06 19:01:59 -04:00
Chris Paris
2cc5bad21e Implement Element.outerHTML setter 2015-04-06 12:56:55 -10:00
Anthony Ramine
dd88bcddc4 Fix Element::RemoveAttribute*() 2015-04-06 14:12:56 +02:00
Anthony Ramine
c557736d26 Fix xml_name_type()
Names with a trailing colon are not qualified names.
2015-04-06 14:12:20 +02:00
Anthony Ramine
1906f835b9 Fix Element::GetAttribute()
Local names should not be used to get a attribute without providing a namespace.
2015-04-06 14:12:20 +02:00
Dave Hodder
d00b9b2fef Add basic HTMLDialogElement interface 2015-04-05 13:48:48 +01:00
Dave Hodder
78de6b2db1 Add basic HTMLDialogElement interface 2015-04-04 19:59:37 +01:00
Matt Brubeck
791fa3757d Implement the :focus pseudo-class selector
Fixes #5460. This supports for simple focusable elements that are their own
DOM anchors, like text `input` fields.
2015-04-04 10:57:11 -07:00
Matt Brubeck
ad6c511a5e Basic element.focus and blur methods
Fixes #5462.
2015-04-04 10:57:11 -07:00
yodalee
4ffaaf2785 modify tests metadata
pass in XMLHttpRequest
fail in members.html
2015-04-04 20:08:14 +08:00
Mikko Vanhatalo
29387f6c4c Implemented HTMLInputElement placeholder attribute
+ modified HTMLInputElement.webidl to include placeholder
+ modified placeholder test expectations
2015-04-04 14:44:32 +03:00
James Graham
db104b738e Return correct exit codes. 2015-04-03 23:51:49 +01:00
James Graham
6b8aaf3c57 Update the README files to reflect the changes to the update procedure. 2015-04-03 23:29:22 +01:00
James Graham
d27cda44ce Update CSS tests expected data to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-04-03 23:29:21 +01:00
James Graham
92b8d158da Update web-platform-tests expected data to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:29:20 +01:00
James Graham
2c9faf5363 Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab 2015-04-03 23:29:19 +01:00
James Graham
1a81b18b9f Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255 2015-04-03 23:28:54 +01:00
James Graham
b2a5225831 Add support for running W3C CSS tests.
These are run through the same harness as the web-platform-tests.
2015-04-03 23:28:51 +01:00
James Graham
2bde318d24 Make the test-wpt mach command support all the command line arguments of wptrunner.
Also remove the shell script and ensure that default options are set in a single location
2015-04-03 23:28:51 +01:00
James Graham
0a7429f147 Put a copy of the wpt upstreaming scripts in-tree.
This is copied from gecko, which is slightly unfortunate. However it allows
committing changes to wpt directly in-tree and having them upstreamed in the
next update.
2015-04-03 23:28:51 +01:00
James Graham
168b81773e Put a copy of the wptrunner harness in-tree.
This is the same configuration as gecko and is convenient for making changes compared
to using releases from pypi
2015-04-03 23:28:51 +01:00
bors-servo
40fab8e362 auto merge of #5470 : bjwbell/servo/tab-in-pre, r=mbrubeck
Display tab characters as 4 spaces for pre and other elements that don't
compress whitespace.

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

@pcwalton r?
2015-04-03 04:18:42 -06:00
Bryan Bell
29852bb111 Show tabs in pre elements
Display tab characters as 8 spaces for pre and other elements that don't
compress whitespace.
2015-04-02 22:15:39 -07:00
bors-servo
dbd16932e6 auto merge of #5299 : mattnenterprise/servo/http_compression, r=jdm 2015-04-01 22:15:37 -06:00
bors-servo
54a6e08146 auto merge of #5483 : zerokarmaleft/servo/wpt_iframe_tests, r=jdm
Checking to see if I'm doing this as expected, so I have not yet removed a couple of files that now have passing tests.
2015-04-01 21:31:04 -06:00
Matt McCoy
818f1c5748 Closes #2587 Adding HTTP compression capability 2015-04-01 21:18:47 -04:00
bors-servo
e65e881e1b auto merge of #5472 : jdm/servo/advance, r=jdm
Rebased from #5035.
2015-04-01 16:45:40 -06:00