Auto merge of #12685 - ConnorGBrewster:history_length, r=asajeffrey

Implement history.length

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12685)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-08-03 22:22:57 -05:00 committed by GitHub
commit 7aafc0d0ec
8 changed files with 95 additions and 64 deletions

View file

@ -1,8 +1,5 @@
[001.html]
type: testharness
[history.length should update when loading pages in an iframe]
expected: FAIL
[history.length should update when setting location.hash]
expected: FAIL

View file

@ -1,8 +1,5 @@
[002.html]
type: testharness
[history.length should update when loading pages in an iframe]
expected: FAIL
[history.length should update when setting location.hash]
expected: FAIL

View file

@ -0,0 +1,5 @@
[location_assign_about_blank.html]
type: testharness
[location.assign with initial about:blank browsing context]
expected: FAIL

View file

@ -5598,9 +5598,6 @@
[BarProp interface: attribute visible]
expected: FAIL
[History interface: attribute length]
expected: FAIL
[History interface: attribute state]
expected: FAIL
@ -5610,9 +5607,6 @@
[History interface: operation replaceState(any,DOMString,DOMString)]
expected: FAIL
[History interface: window.history must inherit property "length" with the proper type (0)]
expected: FAIL
[History interface: window.history must inherit property "state" with the proper type (1)]
expected: FAIL