Krinkle has uploaded a new change for review.
https://gerrit.wikimedia.org/r/57455
Change subject: Test: Disable circular reference test for ve.getHash.
......................................................................
Test: Disable circular reference test for ve.getHash.
Change-Id: Idbad334ed21247c3f4d442f6aad62a0b9347cfc6
---
M modules/ve/test/ve.test.js
1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/55/57455/1
diff --git a/modules/ve/test/ve.test.js b/modules/ve/test/ve.test.js
index 6e8659c..756e465 100644
--- a/modules/ve/test/ve.test.js
+++ b/modules/ve/test/ve.test.js
@@ -180,7 +180,7 @@
);
} );
-QUnit.test( 'getHash: Complex usage', 4, function ( assert ) {
+QUnit.test( 'getHash: Complex usage', 3, function ( assert ) {
var obj, hash, frame;
obj = {
@@ -203,11 +203,17 @@
);
// Include a circular reference
+ /*
+ * PhantomJS hangs when calling JSON.stringify with an object
containing a
+ * circular reference (https://github.com/ariya/phantomjs/issues/11206).
+ * We know latest Chrome/Firefox/IE support this. So, for the sake of
+ * having qunit/phantomjs work, lets disable this for now.
obj.f = obj;
assert.throws( function () {
ve.getHash( obj );
}, 'Throw exceptions for objects with cirular refences ' );
+ */
function Foo() {
this.a = 1;
--
To view, visit https://gerrit.wikimedia.org/r/57455
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idbad334ed21247c3f4d442f6aad62a0b9347cfc6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits