summaryrefslogtreecommitdiffstats
path: root/o3d/tests
diff options
context:
space:
mode:
authorpetersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 00:40:06 +0000
committerpetersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 00:40:06 +0000
commit23eab1e22cfafb78821f64b7d77fde3b507e9349 (patch)
tree37bb08cb81ce63c226f92eae437f7f09a873dae6 /o3d/tests
parent5ed096ed908b8a1d0e93adfb0a527502f5ef5122 (diff)
downloadchromium_src-23eab1e22cfafb78821f64b7d77fde3b507e9349.zip
chromium_src-23eab1e22cfafb78821f64b7d77fde3b507e9349.tar.gz
chromium_src-23eab1e22cfafb78821f64b7d77fde3b507e9349.tar.bz2
Modified the function o3djs.quaternions.rotationToQuaternion() to address a bug where the identity matrix was generating a bad quaternion.
bug = http://code.google.com/p/o3d/issues/detail?id=224 Review URL: http://codereview.chromium.org/2822006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/tests')
-rw-r--r--o3d/tests/selenium/tests/quaternion-test.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/o3d/tests/selenium/tests/quaternion-test.html b/o3d/tests/selenium/tests/quaternion-test.html
index 0fda49c..2b2223f 100644
--- a/o3d/tests/selenium/tests/quaternion-test.html
+++ b/o3d/tests/selenium/tests/quaternion-test.html
@@ -231,7 +231,8 @@ g_suite.testQuaternionToRotation = function() {
g_suite.testRotationToQuaternion = function() {
// Start with a bunch of haphazard rotation matrices.
- var matrices = [g_math.matrix4.axisRotation([1, -2, 0], 1),
+ var matrices = [g_math.matrix4.identity(),
+ g_math.matrix4.axisRotation([1, -2, 0], 1),
g_math.matrix4.axisRotation([2, -4, -1], -.1),
g_math.matrix4.axisRotation([-1, -4, -1], 1),
g_math.matrix4.axisRotation([-1, -3, 2], .1),