tests/auto/qurl/tst_qurl.cpp
changeset 25 e24348a560a6
parent 19 fcece45ef507
child 29 b72c6db6890b
equal deleted inserted replaced
23:89e065397ea6 25:e24348a560a6
  3187                                << QString::fromLatin1("alqualond\353")
  3187                                << QString::fromLatin1("alqualond\353")
  3188                                << QString::fromLatin1("alqualond\353");
  3188                                << QString::fromLatin1("alqualond\353");
  3189 
  3189 
  3190     QTest::newRow("separator-3002") << QString::fromUtf8("example\343\200\202com")
  3190     QTest::newRow("separator-3002") << QString::fromUtf8("example\343\200\202com")
  3191                                     << "example.com" << "." << "example.com";
  3191                                     << "example.com" << "." << "example.com";
       
  3192 
       
  3193     QString egyptianIDN =
       
  3194         QString::fromUtf8("\331\210\330\262\330\247\330\261\330\251\055\330\247\331\204\330"
       
  3195                           "\243\330\252\330\265\330\247\331\204\330\247\330\252.\331\205"
       
  3196                           "\330\265\330\261");
       
  3197     QTest::newRow("egyptian-tld-ace")
       
  3198         << "xn----rmckbbajlc6dj7bxne2c.xn--wgbh1c"
       
  3199         << "xn----rmckbbajlc6dj7bxne2c.xn--wgbh1c"
       
  3200         << "."
       
  3201         << egyptianIDN;
       
  3202     QTest::newRow("egyptian-tld-unicode")
       
  3203         << egyptianIDN
       
  3204         << "xn----rmckbbajlc6dj7bxne2c.xn--wgbh1c"
       
  3205         << "."
       
  3206         << egyptianIDN;
       
  3207     QTest::newRow("egyptian-tld-mix1")
       
  3208         << QString::fromUtf8("\331\210\330\262\330\247\330\261\330\251\055\330\247\331\204\330"
       
  3209                              "\243\330\252\330\265\330\247\331\204\330\247\330\252.xn--wgbh1c")
       
  3210         << "xn----rmckbbajlc6dj7bxne2c.xn--wgbh1c"
       
  3211         << "."
       
  3212         << egyptianIDN;
       
  3213     QTest::newRow("egyptian-tld-mix2")
       
  3214         << QString::fromUtf8("xn----rmckbbajlc6dj7bxne2c.\331\205\330\265\330\261")
       
  3215         << "xn----rmckbbajlc6dj7bxne2c.xn--wgbh1c"
       
  3216         << "."
       
  3217         << egyptianIDN;
  3192 }
  3218 }
  3193 
  3219 
  3194 void tst_QUrl::ace_testsuite()
  3220 void tst_QUrl::ace_testsuite()
  3195 {
  3221 {
  3196     static const char canonsuffix[] = ".troll.no";
  3222     static const char canonsuffix[] = ".troll.no";