[gjs/wip/ptomato/tests: 22/26] test locale: Delete commented-out test



commit e52e77b411817070cc2c2336fc522de59a5868e2
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Dec 8 22:27:53 2016 -0800

    test locale: Delete commented-out test
    
    This was supposed to have been commented out temporarily, but I'm not
    aware of a way in which to create an invalid JSString that can't be
    converted to UTF-8, at least not from Javascript. Probably the '\ud800'
    triggered a bug in an earlier version of SpiderMonkey, but I don't think
    this test can sensibly pass anymore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=775444

 installed-tests/js/testLocale.js |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/installed-tests/js/testLocale.js b/installed-tests/js/testLocale.js
index 213197c..b95c8e7 100644
--- a/installed-tests/js/testLocale.js
+++ b/installed-tests/js/testLocale.js
@@ -30,10 +30,6 @@ function testToLocaleCompare() {
     JSUnit.assertTrue("a".localeCompare("b") < 0);
     JSUnit.assertEquals( 0, "a".localeCompare("a"));
     JSUnit.assertTrue("b".localeCompare("a") > 0);
-
-    // Again test error handling when conversion fails
-    //assertRaises(function() { "\ud800".localeCompare("a"); });
-    //assertRaises(function() { "a".localeCompare("\ud800"); });
 }
 
 JSUnit.gjstestRun(this, JSUnit.setUp, JSUnit.tearDown);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]