]> git.lyx.org Git - lyx.git/blobdiff - src/tests/check_Length.cpp
Provide option to prevent unnecessary font loading.
[lyx.git] / src / tests / check_Length.cpp
index 8311e45eaa766919b9e186e973580c390cd7a79a..3ee9f956977899a2210f7206891bba687f8dc132 100644 (file)
@@ -14,11 +14,11 @@ using namespace std;
 void test_inPixels()
 {
        // want to see non-zero SP
-       lyxrc.zoom = 100000;
+       lyxrc.currentZoom = 100000;
        lyxrc.dpi = 72;
        for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
                Length const l(2342, static_cast<Length::UNIT>(i));
-               cout << l.inPixels(250) << endl;
+               cout << l.inPixels(250) << " pix(250) = " << l.asString() << endl;
        }
 }
 
@@ -27,7 +27,7 @@ void test_inBP()
 {
        for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
                Length const l(2342, static_cast<Length::UNIT>(i));
-               cout << l.inBP() << endl;
+               cout << l.inBP() << " BP = " << l.asString() << endl;
        }
 }