tests/auto/qcssparser/tst_qcssparser.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
  1554     QTest::newRow("multiple2") << "font-family: invalid,  Times New   Roman " << QString("Times New Roman");
  1554     QTest::newRow("multiple2") << "font-family: invalid,  Times New   Roman " << QString("Times New Roman");
  1555     QTest::newRow("invalid") << "font-family: invalid" << QFontInfo(QFont("invalid font")).family();
  1555     QTest::newRow("invalid") << "font-family: invalid" << QFontInfo(QFont("invalid font")).family();
  1556     QTest::newRow("shorthand") << "font: 12pt Times New Roman" << QString("Times New Roman");
  1556     QTest::newRow("shorthand") << "font: 12pt Times New Roman" << QString("Times New Roman");
  1557     QTest::newRow("shorthand multiple quote") << "font: 12pt invalid, \"Times New Roman\" " << QString("Times New Roman");
  1557     QTest::newRow("shorthand multiple quote") << "font: 12pt invalid, \"Times New Roman\" " << QString("Times New Roman");
  1558     QTest::newRow("shorthand multiple") << "font: 12pt invalid, Times New Roman " << QString("Times New Roman");
  1558     QTest::newRow("shorthand multiple") << "font: 12pt invalid, Times New Roman " << QString("Times New Roman");
  1559 }
  1559     QTest::newRow("invalid spaces") << "font-family: invalid spaces, Times New Roman " << QString("Times New Roman");
       
  1560     QTest::newRow("invalid spaces quotes") << "font-family: 'invalid spaces', 'Times New Roman' " << QString("Times New Roman");
       
  1561 }
       
  1562 
  1560 
  1563 
  1561 void tst_QCssParser::extractFontFamily()
  1564 void tst_QCssParser::extractFontFamily()
  1562 {
  1565 {
  1563     QFETCH(QString, css);
  1566     QFETCH(QString, css);
  1564     css.prepend("dummy {");
  1567     css.prepend("dummy {");