Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/js/script-tests/global-constructors.js

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: handleEvent -> invoke and other review nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 description("This test documents our set of global constructors we expose on the window object (FF and Opera don't expose them on the window, btw). This also c hecks to make sure than any constructor attribute we expose has the expected con structor type.") 1 description("This test documents our set of global constructors we expose on the window object (FF and Opera don't expose them on the window, btw). This also c hecks to make sure than any constructor attribute we expose has the expected con structor type.")
2 2
3 var constructorNames = []; 3 var constructorNames = [];
4 4
5 var windowProperties = Object.getOwnPropertyNames(window); 5 var windowProperties = Object.getOwnPropertyNames(window);
6 for (var i = 0; i < windowProperties.length; i++) { 6 for (var i = 0; i < windowProperties.length; i++) {
7 var name = windowProperties[i]; 7 var name = windowProperties[i];
8 var value = window[name]; 8 var value = window[name];
9 var re = new RegExp("Constructor]$"); 9 var re = new RegExp("Constructor]$");
10 var isConstructor = re.exec(value); 10 var isConstructor = re.exec(value);
(...skipping 22 matching lines...) Expand all
33 name == "DataView" || 33 name == "DataView" ||
34 name == "Int8Array" || 34 name == "Int8Array" ||
35 name == "Uint8Array" || 35 name == "Uint8Array" ||
36 name == "Uint8ClampedArray" || 36 name == "Uint8ClampedArray" ||
37 name == "Int16Array" || 37 name == "Int16Array" ||
38 name == "Uint16Array" || 38 name == "Uint16Array" ||
39 name == "Int32Array" || 39 name == "Int32Array" ||
40 name == "Uint32Array" || 40 name == "Uint32Array" ||
41 name == "Float32Array" || 41 name == "Float32Array" ||
42 name == "Float64Array" || 42 name == "Float64Array" ||
43 name == "FileError" ||
44 name == "FileReader") 43 name == "FileReader")
45 continue; 44 continue;
46 45
47 if (name == "XMLDocument") 46 if (name == "XMLDocument")
48 // Gecko exposes an "XMLDocument" constructor, but we just use Document for XML documents instead of a custom sub-type 47 // Gecko exposes an "XMLDocument" constructor, but we just use Document for XML documents instead of a custom sub-type
49 expectedConstructorName = "'function Document() { [native code] }'"; 48 expectedConstructorName = "'function Document() { [native code] }'";
50 49
51 shouldBe("" + name + ".toString()", expectedConstructorName); 50 shouldBe("" + name + ".toString()", expectedConstructorName);
52 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698