概述
LayoutTest 的引入
DumpRenderTree2 則是把測試用例放到 apache 服務器上,通過網絡加載。源碼比 DumpRenderTree 多,結構也更爲複雜。但生成的測試報告比較容易看,所以目前主要在維護這個。
LayoutTest 的主要組成
external/webkit 目錄下有個 LayoutTests 目錄,裏面存放 LayoutTests 的測試用例,
LayoutTest_SDK-2.0/assets 下面有兩個比較重要的 python 腳本:
LayoutTest 的執行過程示意圖:
LayoutTest 的運行方式
2. run_apache2_webkit.py restart # 會啓動127.0.0.1:8000/LayoutTests 對應的case 目錄:webkit/LayoutTests
LayoutTest 結果展示
group | owner | TOTAL | Build.185 | Build.189 | change | unE PASSES | E FAILURES | E PASSES | Crash | |
---|---|---|---|---|---|---|---|---|---|---|
fast/constructors | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | |
fast/encoding | null | 106 | 2 | 2 | 0 | 1 | 11 | 92 | 0 | |
fast/cookies | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | |
fast/events | null | 15 | 8 | 8 | 0 | 0 | 3 | 4 | 1 | |
fast/leaks | null | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | |
fast/url | null | 20 | 1 | 1 | 0 | 0 | 0 | 19 | 0 | |
fast/notifications | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
fast/xpath | null | 61 | 4 | 4 | 0 | 0 | 0 | 57 | 0 | |
fast/dom | null | 173 | 10 | 10 | 0 | 0 | 4 | 159 | 0 | |
http | null | 67 | 6 | 6 | 0 | 3 | 3 | 55 | 0 | |
storage | null | 104 | 9 | 11 | +2 | 32 | 16 | 45 | 1 | |
dom | null | 2616 | 13 | 16 | +3 | 0 | 18 | 2582 | 0 | |
ALL | 3166 | 53 | 58 | +5 | 36 | 56 | 3016 | 2 |
+storage/domstorage/localstorage/window-open.html
+storage/domstorage/sessionstorage/window-open.html
dom :
+dom/html/level2/html/HTMLStyleElement03.html
+dom/html/level2/html/HTMLTableRowElement13.html
+dom/xhtml/level2/html/HTMLDirectoryElement01.xhtml
+dom/xhtml/level2/html/HTMLElement120.xhtml
+dom/xhtml/level2/html/HTMLIFrameElement10.xhtml
-dom/html/level2/html/HTMLImageElement01.html
-dom/html/level2/html/HTMLTableCellElement06.html