diff options
author | yurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 14:12:15 +0000 |
---|---|---|
committer | yurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-07 14:12:15 +0000 |
commit | f587cb53e0138b2d2ff5babb872b46836998552d (patch) | |
tree | d618c261765201bfe9754c8f66023880123c69ba /chrome/test/data/devtools | |
parent | ce1eb3bd99a3af516f3efa93229146e3569e5570 (diff) | |
download | chromium_src-f587cb53e0138b2d2ff5babb872b46836998552d.zip chromium_src-f587cb53e0138b2d2ff5babb872b46836998552d.tar.gz chromium_src-f587cb53e0138b2d2ff5babb872b46836998552d.tar.bz2 |
DevTools: allow inspecting __proto__, constructor, prototype properties.BUG=23647
Review URL: http://codereview.chromium.org/262005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/devtools')
-rw-r--r-- | chrome/test/data/devtools/debugger_intrinsic_properties.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/chrome/test/data/devtools/debugger_intrinsic_properties.html b/chrome/test/data/devtools/debugger_intrinsic_properties.html new file mode 100644 index 0000000..c8ff344 --- /dev/null +++ b/chrome/test/data/devtools/debugger_intrinsic_properties.html @@ -0,0 +1,41 @@ +<html> +<head> +<script> + +function Parent(n) { + this.name_ = 'parent.' + n; + this.parentField = 10; +} +Parent.prototype.parentProtoField = 11; + + +function Child(n) { + Parent.call(this, n); + this.name_ = 'child.' + n; + this.childField = 20; +} +inherits(Child, Parent); +Child.prototype.childProtoField = 21; + +function inherits(childCtor, parentCtor) { + function tempCtor() {}; + tempCtor.prototype = parentCtor.prototype; + childCtor.prototype = new tempCtor(); + childCtor.prototype.constructor = childCtor; +} + +function callDebugger(a) { + var s = a.name_; + debugger; +} + +function handleClick() { + var c = new Child('name'); + callDebugger(c); +} +</script> +</head> +<body> +<input type='button' onclick='handleClick()' value='Test'/> +</body> +</html>
\ No newline at end of file |