<?php // $Rev: 133 $ error_reporting(E_ALL); include_once('../simple_html_dom.php'); $start = microtime(); list($bu, $bs) = explode(' ', $start); $html = file_get_html('slickspeed.htm'); list($eu, $es) = explode(' ', microtime()); echo sprintf('parse (%.1f)', ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000).'<br><br>'; assert(count($html->find('#title'))==1); assert(count($html->find('div'))==51); assert(count($html->find('div[class]'))==51); assert(count($html->find('div.example'))==43); assert(count($html->find('div[class=example]'))==43); assert(count($html->find('.note'))==14); assert(count($html->find('div[class^=exa]'))==43); assert(count($html->find('div[class$=mple]'))==43); assert(count($html->find('div[class*=e]'))==50); assert(count($html->find('div[class!=made_up]'))==51); assert(count($html->find('p'))==324); echo 'All pass!<br>'; ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.svn | Folder | 2755 |
|
|
html | Folder | 2755 |
|
|
reader | Folder | 2755 |
|
|
all_test.php | File | 745 B | 0755 |
|
callback_testcase.php | File | 1.8 KB | 0755 |
|
dom_testcase.php | File | 11.4 KB | 0755 |
|
element_testcase.php | File | 8.21 KB | 0755 |
|
invalid_testcase.php | File | 18.25 KB | 0755 |
|
jquery-1.2.3.pack.js | File | 29.15 KB | 0755 |
|
mass_test.php | File | 2.98 KB | 0755 |
|
memory_test.php | File | 4.61 KB | 0755 |
|
misc_testcase.php | File | 1.81 KB | 0755 |
|
performance_test.php | File | 792 B | 0755 |
|
selector_testcase.php | File | 21.33 KB | 0755 |
|
slick_test.php | File | 892 B | 0755 |
|
slickspeed.htm | File | 113.89 KB | 0755 |
|
std_testcase.php | File | 6.67 KB | 0755 |
|
strip_testcase.php | File | 4.34 KB | 0755 |
|