From ffe8546c7d76fc961ad02a61b7d5145b34147489 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 1 Dec 2017 19:54:11 +0000 Subject: [PATCH] Update the attribute table - the capture attribute changed in #11424 - changes to value/defaultValue handling of functions/Symbols are from #11534, but as per https://github.com/facebook/react/issues/11734#issuecomment-348595047 this is actually not a new problem so we're okay with it --- .../AttributeTableSnapshot.md | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/fixtures/attribute-behavior/AttributeTableSnapshot.md b/fixtures/attribute-behavior/AttributeTableSnapshot.md index b3dc123cdd6d0..a54c608c6e23e 100644 --- a/fixtures/attribute-behavior/AttributeTableSnapshot.md +++ b/fixtures/attribute-behavior/AttributeTableSnapshot.md @@ -1251,24 +1251,24 @@ ## `capture` (on `` inside `
`) | Test Case | Flags | Result | | --- | --- | --- | -| `capture=(string)`| (changed)| `` | -| `capture=(empty string)`| (initial)| `` | -| `capture=(array with string)`| (changed)| `` | +| `capture=(string)`| (changed)| `"environment"` | +| `capture=(empty string)`| (changed)| `` | +| `capture=(array with string)`| (changed)| `"environment"` | | `capture=(empty array)`| (changed)| `` | -| `capture=(object)`| (changed)| `` | -| `capture=(numeric string)`| (changed)| `` | -| `capture=(-1)`| (changed)| `` | -| `capture=(0)`| (initial)| `` | -| `capture=(integer)`| (changed)| `` | -| `capture=(NaN)`| (initial, warning)| `` | -| `capture=(float)`| (changed)| `` | +| `capture=(object)`| (changed)| `"result of toString()"` | +| `capture=(numeric string)`| (changed)| `"42"` | +| `capture=(-1)`| (changed)| `"-1"` | +| `capture=(0)`| (changed)| `"0"` | +| `capture=(integer)`| (changed)| `"1"` | +| `capture=(NaN)`| (changed, warning)| `"NaN"` | +| `capture=(float)`| (changed)| `"99.99"` | | `capture=(true)`| (changed)| `` | | `capture=(false)`| (initial)| `` | -| `capture=(string 'true')`| (changed)| `` | -| `capture=(string 'false')`| (changed)| `` | -| `capture=(string 'on')`| (changed)| `` | -| `capture=(string 'off')`| (changed)| `` | -| `capture=(symbol)`| (initial, warning, ssr mismatch)| `` | +| `capture=(string 'true')`| (changed)| `"true"` | +| `capture=(string 'false')`| (changed)| `"false"` | +| `capture=(string 'on')`| (changed)| `"on"` | +| `capture=(string 'off')`| (changed)| `"off"` | +| `capture=(symbol)`| (initial, warning, ssr error, ssr mismatch)| `` | | `capture=(function)`| (initial, warning, ssr mismatch)| `` | | `capture=(null)`| (initial)| `` | | `capture=(undefined)`| (initial)| `` | @@ -2593,8 +2593,8 @@ | `defaultValue=(string 'false')`| (changed)| `"false"` | | `defaultValue=(string 'on')`| (changed)| `"on"` | | `defaultValue=(string 'off')`| (changed)| `"off"` | -| `defaultValue=(symbol)`| (initial, ssr error, ssr mismatch)| `` | -| `defaultValue=(function)`| (initial, ssr mismatch)| `` | +| `defaultValue=(symbol)`| (changed, error, warning, ssr error)| `` | +| `defaultValue=(function)`| (changed, ssr warning)| `"function f() {}"` | | `defaultValue=(null)`| (initial, ssr warning)| `` | | `defaultValue=(undefined)`| (initial)| `` | @@ -11768,8 +11768,8 @@ | `value=(string 'false')`| (changed)| `"false"` | | `value=(string 'on')`| (changed)| `"on"` | | `value=(string 'off')`| (changed)| `"off"` | -| `value=(symbol)`| (initial, warning, ssr error, ssr mismatch)| `` | -| `value=(function)`| (initial, warning, ssr mismatch)| `` | +| `value=(symbol)`| (changed, error, warning, ssr error)| `` | +| `value=(function)`| (changed, warning, ssr warning)| `"function f() {}"` | | `value=(null)`| (initial, warning, ssr warning)| `` | | `value=(undefined)`| (initial)| `` | @@ -11793,8 +11793,8 @@ | `value=(string 'false')`| (changed)| `"false"` | | `value=(string 'on')`| (changed)| `"on"` | | `value=(string 'off')`| (changed)| `"off"` | -| `value=(symbol)`| (initial, warning, ssr error, ssr mismatch)| `` | -| `value=(function)`| (initial, warning, ssr mismatch)| `` | +| `value=(symbol)`| (changed, error, warning, ssr error)| `` | +| `value=(function)`| (changed, warning)| `"function f() {}"` | | `value=(null)`| (initial, warning, ssr warning)| `` | | `value=(undefined)`| (initial)| `` | @@ -11818,7 +11818,7 @@ | `value=(string 'false')`| (initial)| `` | | `value=(string 'on')`| (initial)| `` | | `value=(string 'off')`| (initial)| `` | -| `value=(symbol)`| (initial, warning, ssr error, ssr mismatch)| `` | +| `value=(symbol)`| (changed, error, warning, ssr error)| `` | | `value=(function)`| (initial, warning)| `` | | `value=(null)`| (initial, warning, ssr warning)| `` | | `value=(undefined)`| (initial)| `` |