Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
semion1956 committed May 12, 2015
1 parent 567d2d7 commit 0de7e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TextLayoutEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ define([
if ((inOrdering === "V") && (outOrdering === "V")) {
//inOrientation != outOrientation
//cases: VRTL->VLTR, VLTR->VRTL
bdx.dir = inOrientation === "RTL"? RTL : LTR;
bdx.dir = inOrientation === "RTL" ? RTL : LTR;
return invertStr(text, bdx);
}
if ((inOrdering === "L") && (outFormat === "VRTL")) {
Expand Down
6 changes: 3 additions & 3 deletions tests/TextLayoutEngineMapsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ define([
});
},
"(5) Levels: ltr" : function () {
var result = engine.bidiTransform(txt1, "ILYNN", "VRNNN");
engine.bidiTransform(txt1, "ILYNN", "VRNNN");
assert.equal(engine.levels.join(""), "1111222000000000", contErr);
},
"(6) Levels: rtl" : function () {
var result = engine.bidiTransform(txt1, "IRYNN", "VLNNN");
engine.bidiTransform(txt1, "IRYNN", "VLNNN");
assert.equal(engine.levels.join(""), "1111222122222221", contErr);
}
}
});

var txt1 = "\u05d0\u05d1\u05d2 123 ABC 456.";
Expand Down

0 comments on commit 0de7e4c

Please sign in to comment.