Skip to content

Improve unit test of DataSlice - #11711

Closed
izgzhen wants to merge 1 commit into
servo:masterfrom
izgzhen:improve-blob-unit-test
Closed

izgzhen wants to merge 1 commit into
servo:masterfrom
izgzhen:improve-blob-unit-test

Conversation

@izgzhen

@izgzhen izgzhen commented Jun 10, 2016 •

Copy link
Copy Markdown
Contributor

Add three more cases. relevant spec https://w3c.github.io/FileAPI/#slice-method-algo


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors

related to #11131

  • There are tests for these changes OR

This change is Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jun 10, 2016
@Manishearth

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 416bb89 has been approved by Manishearth

@highfive highfive assigned Manishearth and unassigned mbrubeck Jun 11, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jun 11, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 416bb89 with merge e2adaa2...

bors-servo pushed a commit that referenced this pull request Jun 12, 2016
Improve unit test of DataSlice

Add three more cases. relevant spec https://w3c.github.io/FileAPI/#slice-method-algo

<!-- 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

related to #11131

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11711)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 12, 2016
@izgzhen

izgzhen commented Jun 12, 2016 •

Copy link
Copy Markdown
Contributor Author

@bors-servo retry

Exception git

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 416bb89 with merge 6363bba...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Jun 12, 2016
bors-servo pushed a commit that referenced this pull request Jun 12, 2016
Improve unit test of DataSlice

Add three more cases. relevant spec https://w3c.github.io/FileAPI/#slice-method-algo

<!-- 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

related to #11131

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11711)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 12, 2016
bors-servo pushed a commit that referenced this pull request Jun 12, 2016
Improve unit test of DataSlice

Add three more cases. relevant spec https://w3c.github.io/FileAPI/#slice-method-algo

<!-- 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

related to #11131

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11711)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 416bb89 with merge 6ef58ae...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Jun 12, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 12, 2016
@highfive

Copy link
Copy Markdown
  ▶ CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/change_parentage.html
  │ 
  │ Xlib:  extension &#34;XFree86-VidModeExtension&#34; missing on display &#34;:0&#34;.
  │ ERROR:constellation::constellation: Panic: ScriptThread: received an event message for a layout channel that is not associated with this script thread.This is a bug.
  │ ERROR:constellation::constellation: Backtrace:
  │ frame #0  - 0x00007f43c0e2f72d - backtrace::backtrace::trace::hccde8df28b4db2a2
  │ frame #1  - 0x00007f43c0e2f6b5 - backtrace::capture::Backtrace::new::h42f95930bb8c5ee8
  │ frame #2  - 0x00007f43bfe59b99 - _&lt;F as alloc..boxed..FnBox&lt;A&gt;&gt;::call_box::h89adae1a802be550
  │ frame #3  - 0x00007f43c0e20f68 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::he2b22674ad1748f3
  │ frame #4  - 0x00007f43c10eeb4c - std::panicking::rust_panic_with_hook::h983af77c1a2e581b
  │ frame #5  - 0x00007f43c1108f51 - std::panicking::begin_panic::he426e15a3766089a
  │ frame #6  - 0x00007f43c10f03ba - std::panicking::begin_panic_fmt::hdddb415186c241e7
  │ frame #7  - 0x00007f43c1108eee - rust_begin_unwind
  │ frame #8  - 0x00007f43c113f4ef - core::panicking::panic_fmt::hf4e16cb7f0d41a25
  │ frame #9  - 0x00007f43c1146ba4 - core::option::expect_failed::hdb92832549f56a85
  │ frame #10 - 0x00007f43bfe66bd1 - script::script_thread::ScriptThread::handle_msg_from_script::h47e979ae1e7fb676
  │ frame #11 - 0x00007f43bfeb29df - script::script_thread::ScriptThread::handle_msgs::_$u7b$$u7b$closure$u7d$$u7d$::hb50cf7fd97943b65
  │ frame #12 - 0x00007f43bfe99f87 - script::script_thread::ScriptThread::handle_msgs::h1e1abab71191c950
  │ frame #13 - 0x00007f43bfe58217 - std::panicking::try::call::h78dcd5319adf08fa
  │ frame #14 - 0x00007f43c111314b - __rust_try
  │ frame #15 - 0x00007f43c11130ee - __rust_maybe_catch_panic
  │ frame #16 - 0x00007f43bfe594fd - _&lt;F as alloc..boxed..FnBox&lt;A&gt;&gt;::call_box::hce043844655ea6a9
  │ frame #17 - 0x00007f43c1107114 - std::sys::thread::Thread::new::thread_start::h9c883b6d445ece46
  │ frame #18 - 0x00007f43bcf4a183 - start_thread
  │ frame #19 - 0x00007f43bca6137c - clone
  │ frame #20 - 0x0000000000000000 - &lt;unknown&gt;
  │ 
  └ ERROR:constellation::constellation: Pipeline failed in hard-fail mode.  Crashing!

@highfive

Copy link
Copy Markdown

New code was committed to pull request.

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Jun 12, 2016
@Ms2ger

Ms2ger commented Jun 12, 2016

Copy link
Copy Markdown
Contributor

I'm a little unhappy about writing unit tests for this. Can't we write wpt tests?

@izgzhen

izgzhen commented Jun 12, 2016

Copy link
Copy Markdown
Contributor Author

@Ms2ger okay, I should have thought that. Sounds good to me

@izgzhen izgzhen closed this Jun 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants