All users were logged out of Bugzilla on October 13th, 2018

Add Moz2D Unit Tests

RESOLVED FIXED in mozilla22

Status

()

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: BenWa, Unassigned)

Tracking

Trunk
mozilla22
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 712066 [details] [diff] [review]
Add Moz2D GTest driver

This turns out pretty nicely and interleave the output from the Moz2D unittest driver while still running and reporting failures within GTest. This simple wrapper will make these test run once GTest is checked in and added to TBPL.

[==========] Running 6 tests from 3 test cases.
[----------] Global test environment set-up.
[----------] 1 test from MozillaGTestSanity
[ RUN      ] MozillaGTestSanity.Runs
[       OK ] MozillaGTestSanity.Runs (0 ms)
[----------] 1 test from MozillaGTestSanity (0 ms total)

[----------] 3 tests from TiledLayerBuffer
[ RUN      ] TiledLayerBuffer.TileStart
[       OK ] TiledLayerBuffer.TileStart (0 ms)
[ RUN      ] TiledLayerBuffer.TileConstructor
[       OK ] TiledLayerBuffer.TileConstructor (0 ms)
[ RUN      ] TiledLayerBuffer.EmptyUpdate
[       OK ] TiledLayerBuffer.EmptyUpdate (0 ms)
[----------] 3 tests from TiledLayerBuffer (0 ms total)

[----------] 2 tests from Moz2D
[ RUN      ] Moz2D.Point
Test (Addition): PASSED
Test (Subtraction): PASSED
[       OK ] Moz2D.Point (0 ms)
[ RUN      ] Moz2D.Scaling
Test (BasicHalfScale): PASSED
Test (DoubleHalfScale): PASSED
Test (UnevenHalfScale): PASSED
Test (OddStrideHalfScale): PASSED
Test (VerticalHalfScale): PASSED
Test (HorizontalHalfScale): PASSED
Test (MixedHalfScale): PASSED
[       OK ] Moz2D.Scaling (4 ms)
[----------] 2 tests from Moz2D (4 ms total)

[----------] Global test environment tear-down
[==========] 6 tests from 3 test cases ran. (4 ms total)
[  PASSED  ] 6 tests.
Attachment #712066 - Flags: review?
(Reporter)

Updated

6 years ago
Attachment #712066 - Flags: review? → review?(bas)
Attachment #712066 - Flags: review?(bas) → review+

Comment 2

6 years ago
https://hg.mozilla.org/mozilla-central/rev/af458c2178be
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.