added tests for table v1

This commit is contained in:
felipe
2017-03-10 17:38:04 +01:00
parent e7e5c61a90
commit c0b0649f37
4 changed files with 129 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { Paragraph } from "../paragraph";
import { XmlComponent } from "../xml-components";
import { GridCol, TableGrid } from "./grid";
import { TableGrid } from "./grid";
import { TableProperties } from "./properties";
export class Table extends XmlComponent {
@ -15,7 +15,7 @@ export class Table extends XmlComponent {
this.root.push(this.properties);
const gridCols: number[] = [];
for (let i = 0; i++; i < cols) {
for (let i = 0; i < cols; i++) {
gridCols.push(0);
}
this.grid = new TableGrid(gridCols);
@ -66,7 +66,7 @@ class TableRowProperties extends XmlComponent {
}
class TableCell extends XmlComponent {
public content: XmlComponent;
public content: Paragraph;
private properties: TableCellProperties;
constructor() {