mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Reduce test output size
This commit is contained in:
parent
23b6f29ecf
commit
badbf52c1c
@ -8,7 +8,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function setUp() {
|
function setUp() {
|
||||||
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
||||||
for (var i = 1;i<=100;i++){
|
for (var i = 1;i<=15;i++){
|
||||||
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[1]));
|
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[1]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function setUp() {
|
function setUp() {
|
||||||
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
||||||
for (var i = 1;i<=100;i++){
|
for (var i = 1;i<=15;i++){
|
||||||
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[0]));
|
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function setUp() {
|
function setUp() {
|
||||||
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
||||||
for (var i = 1;i<=100;i++){
|
for (var i = 1;i<=15;i++){
|
||||||
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[4]));
|
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[4]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function setUp() {
|
function setUp() {
|
||||||
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
||||||
for (var i = 1;i<=100;i++){
|
for (var i = 1;i<=15;i++){
|
||||||
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[2]));
|
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[2]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
$('body').empty();
|
$('body').empty();
|
||||||
$.each(['arial','verdana','tahoma','courier new'],function(i,e){
|
$.each(['arial','verdana','tahoma','courier new'],function(i,e){
|
||||||
var div = $('<div />').css('font-family',e).appendTo('body');
|
var div = $('<div />').css('font-family',e).appendTo('body');
|
||||||
for(var i=0;i<=10;i++){
|
for(var i=0;i<=5;i++){
|
||||||
$('<div />').text('Testing texts').css('margin-top',1).css('border','1px solid black').css('font-size',(16+i*6)).appendTo(div);
|
$('<div />').text('Testing texts').css('margin-top',1).css('border','1px solid black').css('font-size',(16+i*6)).appendTo(div);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
$('body').empty();
|
$('body').empty();
|
||||||
$.each(['arial','verdana','tahoma','courier new'],function(i,e){
|
$.each(['arial','verdana','tahoma','courier new'],function(i,e){
|
||||||
var div = $('<div />').css('font-family',e).appendTo('body');
|
var div = $('<div />').css('font-family',e).appendTo('body');
|
||||||
for(var i=0;i<=10;i++){
|
for(var i=0;i<=5;i++){
|
||||||
$('<div />').text('Testing texts').css('margin-top',1).css('border','1px solid black').css('font-size',(16+i*6)).appendTo(div);
|
$('<div />').text('Testing texts').css('margin-top',1).css('border','1px solid black').css('font-size',(16+i*6)).appendTo(div);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user